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

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

Issue 1248713002: ozone: ClientPixmapManager passes VGEM fd from browser to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add IOSurfaceManager to ThreadRestrictions friend list. Created 5 years, 4 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"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 } 60 }
61 scoped_ptr<PlatformWindow> CreatePlatformWindow( 61 scoped_ptr<PlatformWindow> CreatePlatformWindow(
62 PlatformWindowDelegate* delegate, 62 PlatformWindowDelegate* delegate,
63 const gfx::Rect& bounds) override { 63 const gfx::Rect& bounds) override {
64 return make_scoped_ptr<PlatformWindow>( 64 return make_scoped_ptr<PlatformWindow>(
65 new PlatformWindowCast(delegate, bounds)); 65 new PlatformWindowCast(delegate, bounds));
66 } 66 }
67 scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override { 67 scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override {
68 return make_scoped_ptr(new NativeDisplayDelegateOzone()); 68 return make_scoped_ptr(new NativeDisplayDelegateOzone());
69 } 69 }
70 base::ScopedFD OpenClientNativePixmapDevice() const override {
71 return base::ScopedFD();
72 }
70 73
71 void InitializeUI() override { 74 void InitializeUI() override {
72 overlay_manager_.reset(new OverlayManagerCast()); 75 overlay_manager_.reset(new OverlayManagerCast());
73 cursor_factory_.reset(new CursorFactoryOzone()); 76 cursor_factory_.reset(new CursorFactoryOzone());
74 input_controller_ = CreateStubInputController(); 77 input_controller_ = CreateStubInputController();
75 gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost()); 78 gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost());
76 } 79 }
77 void InitializeGPU() override { 80 void InitializeGPU() override {
78 surface_factory_.reset(new SurfaceFactoryCast(egl_platform_.Pass())); 81 surface_factory_.reset(new SurfaceFactoryCast(egl_platform_.Pass()));
79 gpu_platform_support_.reset( 82 gpu_platform_support_.reset(
(...skipping 16 matching lines...) Expand all
96 99
97 OzonePlatform* CreateOzonePlatformCast() { 100 OzonePlatform* CreateOzonePlatformCast() {
98 const std::vector<std::string>& argv = 101 const std::vector<std::string>& argv =
99 base::CommandLine::ForCurrentProcess()->argv(); 102 base::CommandLine::ForCurrentProcess()->argv();
100 scoped_ptr<chromecast::CastEglPlatform> platform( 103 scoped_ptr<chromecast::CastEglPlatform> platform(
101 chromecast::CastEglPlatformShlib::Create(argv)); 104 chromecast::CastEglPlatformShlib::Create(argv));
102 return new OzonePlatformCast(platform.Pass()); 105 return new OzonePlatformCast(platform.Pass());
103 } 106 }
104 107
105 } // namespace ui 108 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698