blob: 857840d12f630d89aa734d89296e7bcfaa999a7b [file] [log] [blame]
Jeff Brown7c8fe652016-01-26 15:51:52 -08001// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "mojo/ui/ganesh_view.h"
6
7#include "base/logging.h"
8#include "mojo/skia/ganesh_texture_surface.h"
9#include "third_party/skia/include/core/SkCanvas.h"
10
11namespace mojo {
12namespace ui {
13
Viet-Trung Luu4ade0ed2016-05-18 15:55:15 -070014GaneshView::GaneshView(InterfaceHandle<ApplicationConnector> app_connector,
15 InterfaceRequest<ViewOwner> view_owner_request,
16 const std::string& label)
17 : BaseView(app_connector.Pass(), view_owner_request.Pass(), label),
18 ganesh_renderer_(new skia::GaneshContext(
19 GLContext::CreateOffscreen(BaseView::app_connector()))) {}
Jeff Brown7c8fe652016-01-26 15:51:52 -080020
21GaneshView::~GaneshView() {}
22
23} // namespace ui
24} // namespace mojo