Jeff Brown | 7c8fe65 | 2016-01-26 15:51:52 -0800 | [diff] [blame] | 1 | // 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 | |
| 11 | namespace mojo { |
| 12 | namespace ui { |
| 13 | |
Viet-Trung Luu | 4ade0ed | 2016-05-18 15:55:15 -0700 | [diff] [blame] | 14 | GaneshView::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 Brown | 7c8fe65 | 2016-01-26 15:51:52 -0800 | [diff] [blame] | 20 | |
| 21 | GaneshView::~GaneshView() {} |
| 22 | |
| 23 | } // namespace ui |
| 24 | } // namespace mojo |