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

Side by Side Diff: ui/gl/gl_surface_egl.h

Issue 2415663008: Expose Null ANGLE backend (Closed)
Patch Set: Fix/Add test Created 4 years, 2 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 | « no previous file | ui/gl/gl_surface_egl.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_GL_GL_SURFACE_EGL_H_ 5 #ifndef UI_GL_GL_SURFACE_EGL_H_
6 #define UI_GL_GL_SURFACE_EGL_H_ 6 #define UI_GL_GL_SURFACE_EGL_H_
7 7
8 #if defined(OS_WIN) 8 #if defined(OS_WIN)
9 #include <windows.h> 9 #include <windows.h>
10 #endif 10 #endif
(...skipping 20 matching lines...) Expand all
31 // If adding a new type, also add it to EGLDisplayType in 31 // If adding a new type, also add it to EGLDisplayType in
32 // tools/metrics/histograms/histograms.xml. Don't remove or reorder entries. 32 // tools/metrics/histograms/histograms.xml. Don't remove or reorder entries.
33 enum DisplayType { 33 enum DisplayType {
34 DEFAULT = 0, 34 DEFAULT = 0,
35 SWIFT_SHADER = 1, 35 SWIFT_SHADER = 1,
36 ANGLE_WARP = 2, 36 ANGLE_WARP = 2,
37 ANGLE_D3D9 = 3, 37 ANGLE_D3D9 = 3,
38 ANGLE_D3D11 = 4, 38 ANGLE_D3D11 = 4,
39 ANGLE_OPENGL = 5, 39 ANGLE_OPENGL = 5,
40 ANGLE_OPENGLES = 6, 40 ANGLE_OPENGLES = 6,
41 DISPLAY_TYPE_MAX = 7, 41 ANGLE_NULL = 7,
42 DISPLAY_TYPE_MAX = 8,
42 }; 43 };
43 44
44 GL_EXPORT void GetEGLInitDisplays(bool supports_angle_d3d, 45 GL_EXPORT void GetEGLInitDisplays(bool supports_angle_d3d,
45 bool supports_angle_opengl, 46 bool supports_angle_opengl,
47 bool supports_angle_null,
46 const base::CommandLine* command_line, 48 const base::CommandLine* command_line,
47 std::vector<DisplayType>* init_displays); 49 std::vector<DisplayType>* init_displays);
48 50
49 // VSync provider for EGL surface; 51 // VSync provider for EGL surface;
50 class GL_EXPORT EGLSyncControlVSyncProvider : public SyncControlVSyncProvider { 52 class GL_EXPORT EGLSyncControlVSyncProvider : public SyncControlVSyncProvider {
51 public: 53 public:
52 explicit EGLSyncControlVSyncProvider(EGLSurface surface); 54 explicit EGLSyncControlVSyncProvider(EGLSurface surface);
53 ~EGLSyncControlVSyncProvider() override; 55 ~EGLSyncControlVSyncProvider() override;
54 56
55 protected: 57 protected:
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 ~SurfacelessEGL() override; 236 ~SurfacelessEGL() override;
235 237
236 private: 238 private:
237 gfx::Size size_; 239 gfx::Size size_;
238 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); 240 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL);
239 }; 241 };
240 242
241 } // namespace gl 243 } // namespace gl
242 244
243 #endif // UI_GL_GL_SURFACE_EGL_H_ 245 #endif // UI_GL_GL_SURFACE_EGL_H_
OLDNEW
« no previous file with comments | « no previous file | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698