Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Unified Diff: chromecast/ozone/ozone_platform_cast.cc

Issue 1059073002: Loads CastEglPlatform implementation from shared library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add myself to OWNERS for cast ozone platform. Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/ozone/ozone_platform_cast.h ('k') | chromecast/ozone/platform_window_cast.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/ozone/ozone_platform_cast.cc
diff --git a/chromecast/ozone/ozone_platform_cast.cc b/chromecast/ozone/ozone_platform_cast.cc
deleted file mode 100644
index 498ac8155af7061241dafc8e14b3554a45865b96..0000000000000000000000000000000000000000
--- a/chromecast/ozone/ozone_platform_cast.cc
+++ /dev/null
@@ -1,83 +0,0 @@
-// Copyright 2015 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 "chromecast/ozone/ozone_platform_cast.h"
-
-#include "chromecast/ozone/cast_egl_platform.h"
-#include "chromecast/ozone/gpu_platform_support_cast.h"
-#include "chromecast/ozone/platform_window_cast.h"
-#include "chromecast/ozone/surface_factory_cast.h"
-#include "ui/ozone/common/native_display_delegate_ozone.h"
-#include "ui/ozone/public/cursor_factory_ozone.h"
-#include "ui/ozone/public/gpu_platform_support_host.h"
-#include "ui/ozone/public/input_controller.h"
-#include "ui/ozone/public/system_input_injector.h"
-
-namespace chromecast {
-namespace ozone {
-
-OzonePlatformCast::OzonePlatformCast(scoped_ptr<CastEglPlatform> egl_platform)
- : egl_platform_(egl_platform.Pass()) {
-}
-
-OzonePlatformCast::~OzonePlatformCast() {
-}
-
-ui::SurfaceFactoryOzone* OzonePlatformCast::GetSurfaceFactoryOzone() {
- return surface_factory_ozone_.get();
-}
-
-ui::CursorFactoryOzone* OzonePlatformCast::GetCursorFactoryOzone() {
- return cursor_factory_ozone_.get();
-}
-
-ui::InputController* OzonePlatformCast::GetInputController() {
- return input_controller_.get();
-}
-
-ui::GpuPlatformSupport* OzonePlatformCast::GetGpuPlatformSupport() {
- return gpu_platform_support_.get();
-}
-
-ui::GpuPlatformSupportHost* OzonePlatformCast::GetGpuPlatformSupportHost() {
- return gpu_platform_support_host_.get();
-}
-
-scoped_ptr<ui::SystemInputInjector>
-OzonePlatformCast::CreateSystemInputInjector() {
- return scoped_ptr<ui::SystemInputInjector>(); // no input injection support
-}
-
-scoped_ptr<ui::PlatformWindow> OzonePlatformCast::CreatePlatformWindow(
- ui::PlatformWindowDelegate* delegate,
- const gfx::Rect& bounds) {
- return make_scoped_ptr<ui::PlatformWindow>(
- new PlatformWindowCast(delegate, bounds));
-}
-
-scoped_ptr<ui::NativeDisplayDelegate>
-OzonePlatformCast::CreateNativeDisplayDelegate() {
- return scoped_ptr<ui::NativeDisplayDelegate>(
- new ui::NativeDisplayDelegateOzone());
-}
-
-void OzonePlatformCast::InitializeUI() {
- if (!surface_factory_ozone_) {
- surface_factory_ozone_.reset(new SurfaceFactoryCast(egl_platform_.Pass()));
- }
- cursor_factory_ozone_.reset(new ui::CursorFactoryOzone());
- input_controller_ = ui::CreateStubInputController();
- gpu_platform_support_host_.reset(ui::CreateStubGpuPlatformSupportHost());
-}
-
-void OzonePlatformCast::InitializeGPU() {
- if (!surface_factory_ozone_) {
- surface_factory_ozone_.reset(new SurfaceFactoryCast(egl_platform_.Pass()));
- }
- gpu_platform_support_.reset(
- new GpuPlatformSupportCast(surface_factory_ozone_.get()));
-}
-
-} // namespace ozone
-} // namespace chromecast
« no previous file with comments | « chromecast/ozone/ozone_platform_cast.h ('k') | chromecast/ozone/platform_window_cast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698