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

Side by Side Diff: ui/ozone/platform/cast/ozone_platform_cast.cc

Issue 1128113011: ozone: Introduce ClientPixmap and ClientPixmapFactory for non-GPU processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Introduce NativePixmapClient Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/ozone/platform/cast/ozone_platform_cast.h" 5 #include "ui/ozone/platform/cast/ozone_platform_cast.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chromecast/public/cast_egl_platform.h" 8 #include "chromecast/public/cast_egl_platform.h"
9 #include "chromecast/public/cast_egl_platform_shlib.h" 9 #include "chromecast/public/cast_egl_platform_shlib.h"
10 #include "ui/ozone/common/native_display_delegate_ozone.h" 10 #include "ui/ozone/common/native_display_delegate_ozone.h"
11 #include "ui/ozone/platform/cast/gpu_platform_support_cast.h" 11 #include "ui/ozone/platform/cast/gpu_platform_support_cast.h"
12 #include "ui/ozone/platform/cast/overlay_manager_cast.h" 12 #include "ui/ozone/platform/cast/overlay_manager_cast.h"
13 #include "ui/ozone/platform/cast/platform_window_cast.h" 13 #include "ui/ozone/platform/cast/platform_window_cast.h"
14 #include "ui/ozone/platform/cast/surface_factory_cast.h" 14 #include "ui/ozone/platform/cast/surface_factory_cast.h"
15 #include "ui/ozone/public/cursor_factory_ozone.h" 15 #include "ui/ozone/public/cursor_factory_ozone.h"
16 #include "ui/ozone/public/gpu_platform_support_host.h" 16 #include "ui/ozone/public/gpu_platform_support_host.h"
17 #include "ui/ozone/public/input_controller.h" 17 #include "ui/ozone/public/input_controller.h"
18 #include "ui/ozone/public/native_pixmap_client.h"
18 #include "ui/ozone/public/ozone_platform.h" 19 #include "ui/ozone/public/ozone_platform.h"
19 #include "ui/ozone/public/system_input_injector.h" 20 #include "ui/ozone/public/system_input_injector.h"
20 21
21 using chromecast::CastEglPlatform; 22 using chromecast::CastEglPlatform;
22 23
23 namespace ui { 24 namespace ui {
24 namespace { 25 namespace {
25 26
26 // Ozone platform implementation for Cast. Implements functionality 27 // Ozone platform implementation for Cast. Implements functionality
27 // common to all Cast implementations: 28 // common to all Cast implementations:
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 scoped_ptr<SurfaceFactoryCast> surface_factory_; 86 scoped_ptr<SurfaceFactoryCast> surface_factory_;
86 scoped_ptr<CursorFactoryOzone> cursor_factory_; 87 scoped_ptr<CursorFactoryOzone> cursor_factory_;
87 scoped_ptr<InputController> input_controller_; 88 scoped_ptr<InputController> input_controller_;
88 scoped_ptr<GpuPlatformSupportCast> gpu_platform_support_; 89 scoped_ptr<GpuPlatformSupportCast> gpu_platform_support_;
89 scoped_ptr<GpuPlatformSupportHost> gpu_platform_support_host_; 90 scoped_ptr<GpuPlatformSupportHost> gpu_platform_support_host_;
90 scoped_ptr<OverlayManagerOzone> overlay_manager_; 91 scoped_ptr<OverlayManagerOzone> overlay_manager_;
91 92
92 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCast); 93 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCast);
93 }; 94 };
94 95
96 class NativePixmapClientCast : public NativePixmapClient {
97 public:
98 NativePixmapClientCast() {}
99 ~NativePixmapClientCast() override {}
100
101 private:
102 DISALLOW_COPY_AND_ASSIGN(NativePixmapClientCast);
103 };
104
95 } // namespace 105 } // namespace
96 106
97 OzonePlatform* CreateOzonePlatformCast() { 107 OzonePlatform* CreateOzonePlatformCast() {
98 const std::vector<std::string>& argv = 108 const std::vector<std::string>& argv =
99 base::CommandLine::ForCurrentProcess()->argv(); 109 base::CommandLine::ForCurrentProcess()->argv();
100 scoped_ptr<chromecast::CastEglPlatform> platform( 110 scoped_ptr<chromecast::CastEglPlatform> platform(
101 chromecast::CastEglPlatformShlib::Create(argv)); 111 chromecast::CastEglPlatformShlib::Create(argv));
102 return new OzonePlatformCast(platform.Pass()); 112 return new OzonePlatformCast(platform.Pass());
103 } 113 }
104 114
115 NativePixmapClient* CreateNativePixmapClientCast() {
116 return new NativePixmapClientCast;
117 }
118
105 } // namespace ui 119 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698