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

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: 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
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..7a602979e1cad5fa3420dbea4b4e41f08a7ee33d 100644
--- a/ui/gl/gl_surface_ozone.cc
+++ b/ui/gl/gl_surface_ozone.cc
@@ -138,6 +138,13 @@ class GL_EXPORT GLSurfaceOzoneSurfaceless : public SurfacelessEGL {
virtual VSyncProvider* GetVSyncProvider() OVERRIDE {
return vsync_provider_.get();
}
+ virtual bool SupportsPostSubBuffer() OVERRIDE { return true; }
alexst (slow to review) 2014/09/17 20:34:06 This is shared between surfaceless and surfaced, s
achaulk 2014/09/17 20:41:57 No this is the surfaceless class
+ virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE {
+ // The actual sub buffer handling is handled at higher layers. We need to
+ // return true to SupportsPostSubBuffer to enable it, but we should never
+ // actually get the sub-buffer swap.
alexst (slow to review) 2014/09/17 20:34:06 If we are not expected to be here, we should add N
achaulk 2014/09/17 20:41:57 Done.
+ return false;
+ }
private:
virtual ~GLSurfaceOzoneSurfaceless() {

Powered by Google App Engine
This is Rietveld 408576698