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

Unified Diff: ui/gl/gl_surface_wgl.h

Issue 2012803003: Fix --use-gl=desktop for Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/gl/gl_surface_wgl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_wgl.h
diff --git a/ui/gl/gl_surface_wgl.h b/ui/gl/gl_surface_wgl.h
index dc323c1f8b7d31a4d54b10011ff27521908bdd0e..e8df55b96322216221eb5c4351aa6f35283dbfbc 100644
--- a/ui/gl/gl_surface_wgl.h
+++ b/ui/gl/gl_surface_wgl.h
@@ -39,6 +39,10 @@ class NativeViewGLSurfaceWGL : public GLSurfaceWGL {
// Implement GLSurface.
bool Initialize(GLSurface::Format format) override;
void Destroy() override;
+ bool Resize(const gfx::Size& size,
+ float scale_factor,
+ bool has_alpha) override;
+ bool Recreate() override;
bool IsOffscreen() override;
gfx::SwapResult SwapBuffers() override;
gfx::Size GetSize() override;
@@ -47,6 +51,8 @@ class NativeViewGLSurfaceWGL : public GLSurfaceWGL {
private:
~NativeViewGLSurfaceWGL() override;
+ GLSurface::Format format_ = GLSurface::SURFACE_DEFAULT;
+
gfx::AcceleratedWidget window_;
gfx::AcceleratedWidget child_window_;
HDC device_context_;
« no previous file with comments | « no previous file | ui/gl/gl_surface_wgl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698