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

Unified Diff: ui/gl/gl_surface_ozone.cc

Issue 571623003: Partial swap implementation for surfaceless (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: simplify some of the swap logic. verified works Created 6 years, 3 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 | « content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_ozone.cc
diff --git a/ui/gl/gl_surface_ozone.cc b/ui/gl/gl_surface_ozone.cc
index 0c30c20ba0a578206ae85103637afcfea4c94b18..e257364e50bcf39d8ee591a2a2a7e1a1a09e5c64 100644
--- a/ui/gl/gl_surface_ozone.cc
+++ b/ui/gl/gl_surface_ozone.cc
@@ -138,6 +138,12 @@ class GL_EXPORT GLSurfaceOzoneSurfaceless : public SurfacelessEGL {
virtual VSyncProvider* GetVSyncProvider() OVERRIDE {
return vsync_provider_.get();
}
+ virtual bool SupportsPostSubBuffer() OVERRIDE { return true; }
+ virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE {
+ // The actual sub buffer handling is handled at higher layers.
+ SwapBuffers();
+ return true;
+ }
private:
virtual ~GLSurfaceOzoneSurfaceless() {
« no previous file with comments | « content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698