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

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

Issue 16613002: Hook up android webview synchronous compositor GL init (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: why is gcc so tolerant of errors?! Created 7 years, 6 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/android/in_process/synchronous_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: content/public/browser/android/synchronous_compositor.h
diff --git a/content/public/browser/android/synchronous_compositor.h b/content/public/browser/android/synchronous_compositor.h
index f380b0e3e5f43063383f3ddbc67152764ffbc7a0..dbc9af5807577d56227c33bf7dc6ac03dbbb0e50 100644
--- a/content/public/browser/android/synchronous_compositor.h
+++ b/content/public/browser/android/synchronous_compositor.h
@@ -36,13 +36,9 @@ class SynchronousCompositor {
// the caller.
virtual void SetClient(SynchronousCompositorClient* client) = 0;
- // Returns true if 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|.
@@ -51,6 +47,10 @@ class SynchronousCompositor {
const gfx::Transform& transform,
gfx::Rect damage_area) = 0;
+ // "On demand" SW draw, into the supplied canvas (observing the transform
+ // and clip set there-in).
+ virtual bool DemandDrawSw(SkCanvas* canvas) = 0;
+
protected:
virtual ~SynchronousCompositor() {}
};
« no previous file with comments | « content/browser/android/in_process/synchronous_compositor_output_surface.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698