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

Unified Diff: cc/resources/picture_pile_impl.h

Issue 13863015: Add flag for drawing layers to screen with Ganesh (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for review 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: cc/resources/picture_pile_impl.h
diff --git a/cc/resources/picture_pile_impl.h b/cc/resources/picture_pile_impl.h
index f3bc98cbc479cbb155ec2dbf48ead9cd0783206d..e058c46c4b4a640a7c4bfca11a900d730270ae9d 100644
--- a/cc/resources/picture_pile_impl.h
+++ b/cc/resources/picture_pile_impl.h
@@ -53,6 +53,15 @@ class CC_EXPORT PicturePileImpl : public PicturePileBase {
float contents_scale,
RasterStats* raster_stats);
+ // Similar to the above Raster method, but this is a convenience method
+ // for when it is known that the raster is going to an intermediate bitmap
+ // that itself will then be blended and thus that a canvas clear is required.
+ void RasterToBitmap(
+ SkCanvas* canvas,
+ gfx::Rect canvas_rect,
+ float contents_scale,
+ RasterStats* raster_stats);
+
skia::RefPtr<SkPicture> GetFlattenedPicture();
struct CC_EXPORT Analysis {

Powered by Google App Engine
This is Rietveld 408576698