blob: 395888a1e04a44cbe0bdab13cfd2cee2fd369dc6 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "mojo/ui/ganesh_view.h"
#include "base/logging.h"
#include "mojo/skia/ganesh_texture_surface.h"
#include "third_party/skia/include/core/SkCanvas.h"
namespace mojo {
namespace ui {
GaneshView::GaneshView(
mojo::ApplicationImpl* app_impl,
mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request,
const std::string& label)
: BaseView(app_impl, view_owner_request.Pass(), label),
gl_context_owner_(mojo::ApplicationConnectorPtr::Create(
app_impl->CreateApplicationConnector())
.get()),
ganesh_context_(gl_context()),
ganesh_renderer_(&ganesh_context_) {}
GaneshView::~GaneshView() {}
} // namespace ui
} // namespace mojo