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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h

Issue 2766553004: WebVR: clear screen after submit if preserveDrawingBuffer is false. (Closed)
Patch Set: Rename to markCompositedAndClearBackbufferIfNeeded Created 3 years, 9 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: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h
index fbde1a813b59e4f64d6382e24968e55d773221b6..fb2455a468cefcd196f7531c345a51ffd8fbf2af 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h
@@ -582,6 +582,10 @@ class MODULES_EXPORT WebGLRenderingContextBase : public CanvasRenderingContext,
ScriptPromise commit(ScriptState*, ExceptionState&);
+ // For use by WebVR which doesn't use the normal compositing path.
+ // This clears the backbuffer if preserveDrawingBuffer is false.
+ void markCompositedAndClearBackbufferIfNeeded();
+
protected:
friend class EXTDisjointTimerQuery;
friend class EXTDisjointTimerQueryWebGL2;

Powered by Google App Engine
This is Rietveld 408576698