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

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

Issue 339793007: Revert of ozone: gpu: Add plumbing for platform-specific gpu messaging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ui/ozone/ozone.gyp ('k') | ui/ozone/platform/caca/ozone_platform_caca.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_OZONE_PLATFORM_H_ 5 #ifndef UI_OZONE_OZONE_PLATFORM_H_
6 #define UI_OZONE_OZONE_PLATFORM_H_ 6 #define UI_OZONE_OZONE_PLATFORM_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/ozone/ozone_export.h" 9 #include "ui/ozone/ozone_export.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 class SurfaceFactoryOzone; 12 class SurfaceFactoryOzone;
13 } 13 }
14 14
15 namespace ui { 15 namespace ui {
16 16
17 class CursorFactoryOzone; 17 class CursorFactoryOzone;
18 class EventFactoryOzone; 18 class EventFactoryOzone;
19 class NativeDisplayDelegate; 19 class NativeDisplayDelegate;
20 class TouchscreenDeviceManager; 20 class TouchscreenDeviceManager;
21 class GpuPlatformSupport;
22 class GpuPlatformSupportHost;
23 21
24 // Base class for Ozone platform implementations. 22 // Base class for Ozone platform implementations.
25 // 23 //
26 // Ozone platforms must override this class and implement the virtual 24 // Ozone platforms must override this class and implement the virtual
27 // GetFooFactoryOzone() methods to provide implementations of the 25 // GetFooFactoryOzone() methods to provide implementations of the
28 // various ozone interfaces. 26 // various ozone interfaces.
29 // 27 //
30 // The OzonePlatform subclass can own any state needed by the 28 // The OzonePlatform subclass can own any state needed by the
31 // implementation that is shared between the various ozone interfaces, 29 // implementation that is shared between the various ozone interfaces,
32 // such as a connection to the windowing system. 30 // such as a connection to the windowing system.
(...skipping 15 matching lines...) Expand all
48 static void InitializeForGPU(); 46 static void InitializeForGPU();
49 47
50 static OzonePlatform* GetInstance(); 48 static OzonePlatform* GetInstance();
51 49
52 // Factory getters to override in subclasses. The returned objects will be 50 // Factory getters to override in subclasses. The returned objects will be
53 // injected into the appropriate layer at startup. Subclasses should not 51 // injected into the appropriate layer at startup. Subclasses should not
54 // inject these objects themselves. Ownership is retained by OzonePlatform. 52 // inject these objects themselves. Ownership is retained by OzonePlatform.
55 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() = 0; 53 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() = 0;
56 virtual ui::EventFactoryOzone* GetEventFactoryOzone() = 0; 54 virtual ui::EventFactoryOzone* GetEventFactoryOzone() = 0;
57 virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() = 0; 55 virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() = 0;
58 virtual ui::GpuPlatformSupport* GetGpuPlatformSupport() = 0;
59 virtual ui::GpuPlatformSupportHost* GetGpuPlatformSupportHost() = 0;
60 #if defined(OS_CHROMEOS) 56 #if defined(OS_CHROMEOS)
61 virtual scoped_ptr<ui::NativeDisplayDelegate> 57 virtual scoped_ptr<ui::NativeDisplayDelegate>
62 CreateNativeDisplayDelegate() = 0; 58 CreateNativeDisplayDelegate() = 0;
63 virtual scoped_ptr<ui::TouchscreenDeviceManager> 59 virtual scoped_ptr<ui::TouchscreenDeviceManager>
64 CreateTouchscreenDeviceManager() = 0; 60 CreateTouchscreenDeviceManager() = 0;
65 #endif 61 #endif
66 62
67 private: 63 private:
68 virtual void InitializeUI() = 0; 64 virtual void InitializeUI() = 0;
69 virtual void InitializeGPU() = 0; 65 virtual void InitializeGPU() = 0;
70 66
71 static void CreateInstance(); 67 static void CreateInstance();
72 68
73 static OzonePlatform* instance_; 69 static OzonePlatform* instance_;
74 70
75 DISALLOW_COPY_AND_ASSIGN(OzonePlatform); 71 DISALLOW_COPY_AND_ASSIGN(OzonePlatform);
76 }; 72 };
77 73
78 } // namespace ui 74 } // namespace ui
79 75
80 #endif // UI_OZONE_OZONE_PLATFORM_H_ 76 #endif // UI_OZONE_OZONE_PLATFORM_H_
OLDNEW
« no previous file with comments | « ui/ozone/ozone.gyp ('k') | ui/ozone/platform/caca/ozone_platform_caca.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698