OLD | NEW |
---|---|
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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
47 // | 47 // |
48 // A platform is free to use different implementations of each | 48 // A platform is free to use different implementations of each |
49 // interface depending on the context. You can, for example, create | 49 // interface depending on the context. You can, for example, create |
50 // different objects depending on the underlying hardware, command | 50 // different objects depending on the underlying hardware, command |
51 // line flags, or whatever is appropriate for the platform. | 51 // line flags, or whatever is appropriate for the platform. |
52 class OZONE_EXPORT OzonePlatform { | 52 class OZONE_EXPORT OzonePlatform { |
53 public: | 53 public: |
54 OzonePlatform(); | 54 OzonePlatform(); |
55 virtual ~OzonePlatform(); | 55 virtual ~OzonePlatform(); |
56 | 56 |
57 // Additional initalization params for the platform. Platforms must not retain | 57 // Additional initialization params for the platform. Platforms must not |
rjkroege
2016/09/08 22:50:27
Apparently I need to learn how to type init*
| |
58 // a reference to this structure. | 58 // retain a reference to this structure. |
59 struct InitParams { | 59 struct InitParams { |
60 // Ozone may retain this pointer for later use. An Ozone platform embedder | 60 // Ozone may retain this pointer for later use. An Ozone platform embedder |
61 // must set this parameter in order for the Ozone platform implementation to | 61 // must set this parameter in order for the Ozone platform implementation to |
62 // be able to use Mojo. | 62 // be able to use Mojo. |
63 shell::Connector* connector = nullptr; | 63 shell::Connector* connector = nullptr; |
64 | 64 |
65 // Setting this to true indicates that the platform implementation should | 65 // Setting this to true indicates that the platform implementation should |
66 // operate as a single process for platforms (i.e. drm) that are usually | 66 // operate as a single process for platforms (i.e. drm) that are usually |
67 // split between a main and gpu specific portion. | 67 // split between a main and gpu specific portion. |
68 bool single_process = false; | 68 bool single_process = false; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
124 static void CreateInstance(); | 124 static void CreateInstance(); |
125 | 125 |
126 static OzonePlatform* instance_; | 126 static OzonePlatform* instance_; |
127 | 127 |
128 DISALLOW_COPY_AND_ASSIGN(OzonePlatform); | 128 DISALLOW_COPY_AND_ASSIGN(OzonePlatform); |
129 }; | 129 }; |
130 | 130 |
131 } // namespace ui | 131 } // namespace ui |
132 | 132 |
133 #endif // UI_OZONE_PUBLIC_OZONE_PLATFORM_H_ | 133 #endif // UI_OZONE_PUBLIC_OZONE_PLATFORM_H_ |
OLD | NEW |