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

Unified Diff: content/public/renderer/android/synchronous_compositor.h

Issue 14772021: cc::OutputSurfaceClient::InitializeForGL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanups Created 7 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
Index: content/public/renderer/android/synchronous_compositor.h
diff --git a/content/public/renderer/android/synchronous_compositor.h b/content/public/renderer/android/synchronous_compositor.h
index 23bbe00de3a70a7e203fddbe5f02ed533587faed..d243ff43be6188d0a05346e1533dfe53eb144931 100644
--- a/content/public/renderer/android/synchronous_compositor.h
+++ b/content/public/renderer/android/synchronous_compositor.h
@@ -29,14 +29,14 @@ class SynchronousCompositor {
// the caller.
virtual void SetClient(SynchronousCompositorClient* client) = 0;
- // Returns true is the compositor is fully initialized and ready to receive
- // calls to DemandDrawHw().
- virtual bool IsHwReady() = 0;
-
// "On demand" SW draw, into the supplied canvas (observing the transform
// and clip set there-in).
virtual bool DemandDrawSw(SkCanvas* canvas) = 0;
+ // One-time synchronously initialize compositor for hardware draw.
+ // It is invalid to DemandDrawHw before this returns true.
+ virtual bool InitializeHwDraw() = 0;
+
// "On demand" hardware draw. The content is first clipped to |damage_area|,
// then transformed through |transform|, and finally clipped to |view_size|.
virtual bool DemandDrawHw(

Powered by Google App Engine
This is Rietveld 408576698