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

Side by Side Diff: ui/ozone/public/ozone_platform.h

Issue 1248713002: ozone: ClientPixmapManager passes VGEM fd from browser to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove redundant Pass() Created 5 years, 3 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
« no previous file with comments | « ui/ozone/public/client_native_pixmap_factory.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 #ifndef UI_OZONE_PUBLIC_OZONE_PLATFORM_H_ 5 #ifndef UI_OZONE_PUBLIC_OZONE_PLATFORM_H_
6 #define UI_OZONE_PUBLIC_OZONE_PLATFORM_H_ 6 #define UI_OZONE_PUBLIC_OZONE_PLATFORM_H_
7 7
8 #include "base/files/scoped_file.h"
8 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
9 #include "ui/ozone/ozone_export.h" 10 #include "ui/ozone/ozone_export.h"
10 11
11 namespace gfx { 12 namespace gfx {
12 class Rect; 13 class Rect;
13 } 14 }
14 15
15 namespace ui { 16 namespace ui {
16 17
17 class CursorFactoryOzone; 18 class CursorFactoryOzone;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() = 0; 62 virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() = 0;
62 virtual ui::InputController* GetInputController() = 0; 63 virtual ui::InputController* GetInputController() = 0;
63 virtual ui::GpuPlatformSupport* GetGpuPlatformSupport() = 0; 64 virtual ui::GpuPlatformSupport* GetGpuPlatformSupport() = 0;
64 virtual ui::GpuPlatformSupportHost* GetGpuPlatformSupportHost() = 0; 65 virtual ui::GpuPlatformSupportHost* GetGpuPlatformSupportHost() = 0;
65 virtual scoped_ptr<SystemInputInjector> CreateSystemInputInjector() = 0; 66 virtual scoped_ptr<SystemInputInjector> CreateSystemInputInjector() = 0;
66 virtual scoped_ptr<PlatformWindow> CreatePlatformWindow( 67 virtual scoped_ptr<PlatformWindow> CreatePlatformWindow(
67 PlatformWindowDelegate* delegate, 68 PlatformWindowDelegate* delegate,
68 const gfx::Rect& bounds) = 0; 69 const gfx::Rect& bounds) = 0;
69 virtual scoped_ptr<ui::NativeDisplayDelegate> 70 virtual scoped_ptr<ui::NativeDisplayDelegate>
70 CreateNativeDisplayDelegate() = 0; 71 CreateNativeDisplayDelegate() = 0;
72 // Open ClientNativePixmap device file for non-GPU processes to import a
73 // ClientNativePixmap.
74 virtual base::ScopedFD OpenClientNativePixmapDevice() const = 0;
71 75
72 private: 76 private:
73 virtual void InitializeUI() = 0; 77 virtual void InitializeUI() = 0;
74 virtual void InitializeGPU() = 0; 78 virtual void InitializeGPU() = 0;
75 79
76 static void CreateInstance(); 80 static void CreateInstance();
77 81
78 static OzonePlatform* instance_; 82 static OzonePlatform* instance_;
79 83
80 DISALLOW_COPY_AND_ASSIGN(OzonePlatform); 84 DISALLOW_COPY_AND_ASSIGN(OzonePlatform);
81 }; 85 };
82 86
83 } // namespace ui 87 } // namespace ui
84 88
85 #endif // UI_OZONE_PUBLIC_OZONE_PLATFORM_H_ 89 #endif // UI_OZONE_PUBLIC_OZONE_PLATFORM_H_
OLDNEW
« no previous file with comments | « ui/ozone/public/client_native_pixmap_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698