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

Side by Side Diff: ui/ozone/platform/cast/gl_ozone_egl_cast.h

Issue 2926423002: ozone: Allow using swiftshader with --use-gl=swiftshader. (Closed)
Patch Set: . Created 3 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
« no previous file with comments | « ui/ozone/common/gl_ozone_egl.cc ('k') | ui/ozone/platform/cast/gl_ozone_egl_cast.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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_PLATFORM_CAST_GL_OZONE_EGL_CAST_H_ 5 #ifndef UI_OZONE_PLATFORM_CAST_GL_OZONE_EGL_CAST_H_
6 #define UI_OZONE_PLATFORM_CAST_GL_OZONE_EGL_CAST_H_ 6 #define UI_OZONE_PLATFORM_CAST_GL_OZONE_EGL_CAST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 16 matching lines...) Expand all
27 explicit GLOzoneEglCast( 27 explicit GLOzoneEglCast(
28 std::unique_ptr<chromecast::CastEglPlatform> egl_platform); 28 std::unique_ptr<chromecast::CastEglPlatform> egl_platform);
29 ~GLOzoneEglCast() override; 29 ~GLOzoneEglCast() override;
30 30
31 // GLOzoneEGL implementation: 31 // GLOzoneEGL implementation:
32 scoped_refptr<gl::GLSurface> CreateViewGLSurface( 32 scoped_refptr<gl::GLSurface> CreateViewGLSurface(
33 gfx::AcceleratedWidget widget) override; 33 gfx::AcceleratedWidget widget) override;
34 scoped_refptr<gl::GLSurface> CreateOffscreenGLSurface( 34 scoped_refptr<gl::GLSurface> CreateOffscreenGLSurface(
35 const gfx::Size& size) override; 35 const gfx::Size& size) override;
36 intptr_t GetNativeDisplay() override; 36 intptr_t GetNativeDisplay() override;
37 bool LoadGLES2Bindings() override; 37 bool LoadGLES2Bindings(gl::GLImplementation implementation) override;
38 38
39 intptr_t GetNativeWindow(); 39 intptr_t GetNativeWindow();
40 bool ResizeDisplay(gfx::Size viewport_size); 40 bool ResizeDisplay(gfx::Size viewport_size);
41 void ChildDestroyed(); 41 void ChildDestroyed();
42 void TerminateDisplay(); 42 void TerminateDisplay();
43 void ShutdownHardware(); 43 void ShutdownHardware();
44 44
45 // API for keeping track of overlays per frame for logging purposes 45 // API for keeping track of overlays per frame for logging purposes
46 void OnSwapBuffers(); 46 void OnSwapBuffers();
47 void OnOverlayScheduled(const gfx::Rect& display_bounds); 47 void OnOverlayScheduled(const gfx::Rect& display_bounds);
(...skipping 18 matching lines...) Expand all
66 gfx::Rect overlay_bounds_; 66 gfx::Rect overlay_bounds_;
67 int previous_frame_overlay_count_ = 0; 67 int previous_frame_overlay_count_ = 0;
68 gfx::Rect previous_frame_overlay_bounds_; 68 gfx::Rect previous_frame_overlay_bounds_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(GLOzoneEglCast); 70 DISALLOW_COPY_AND_ASSIGN(GLOzoneEglCast);
71 }; 71 };
72 72
73 } // namespace ui 73 } // namespace ui
74 74
75 #endif // UI_OZONE_PLATFORM_CAST_GL_OZONE_EGL_CAST_H_ 75 #endif // UI_OZONE_PLATFORM_CAST_GL_OZONE_EGL_CAST_H_
OLDNEW
« no previous file with comments | « ui/ozone/common/gl_ozone_egl.cc ('k') | ui/ozone/platform/cast/gl_ozone_egl_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698