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

Unified Diff: ui/gl/gl_surface_egl.h

Issue 1480333002: egl/x11: Created a child window to control resizes and prevent flashes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved up the call to InitializeNativeWindow() Created 5 years 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 | « ui/gl/gl.gyp ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_egl.h
diff --git a/ui/gl/gl_surface_egl.h b/ui/gl/gl_surface_egl.h
index 8fb84a08003fedf5ef6cc01be500e5b8e406524b..2883e45c5b6937a8645b7989ec33dbb420b50fb7 100644
--- a/ui/gl/gl_surface_egl.h
+++ b/ui/gl/gl_surface_egl.h
@@ -98,18 +98,21 @@ class GL_EXPORT NativeViewGLSurfaceEGL : public GLSurfaceEGL {
// Takes ownership of the VSyncProvider.
virtual bool Initialize(scoped_ptr<VSyncProvider> sync_provider);
+ // Takes care of the platform dependant bits, of any, for creating the window.
+ virtual bool InitializeNativeWindow();
+
protected:
~NativeViewGLSurfaceEGL() override;
EGLNativeWindowType window_;
+ EGLConfig config_;
+ gfx::Size size_;
void OnSetSwapInterval(int interval) override;
private:
EGLSurface surface_;
bool supports_post_sub_buffer_;
- EGLConfig config_;
- gfx::Size size_;
scoped_ptr<VSyncProvider> vsync_provider_;
« no previous file with comments | « ui/gl/gl.gyp ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698