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

Unified Diff: cc/picture_layer_impl.cc

Issue 11731002: Implement a method to access the non-composited content root layer picture pile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: exposing a SkPicture instead of PicturePileImpl. Created 7 years, 12 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/picture_layer_impl.cc
diff --git a/cc/picture_layer_impl.cc b/cc/picture_layer_impl.cc
index 24f2b4791799e51fc078fe42310360bba4b55d2a..acbccdef98d12f0cbac5a5725408017cefcf9002 100644
--- a/cc/picture_layer_impl.cc
+++ b/cc/picture_layer_impl.cc
@@ -170,6 +170,10 @@ void PictureLayerImpl::didUpdateTransforms() {
last_content_scale_y_ = contentsScaleY();
}
+skia::RefPtr<SkPicture> PictureLayerImpl::getPicture() {
+ return pile_->GetFlattenedPicture();
+}
+
void PictureLayerImpl::didUpdateBounds() {
if (is_mask_)
tilings_.Reset();
« no previous file with comments | « cc/picture_layer_impl.h ('k') | cc/picture_pile_impl.h » ('j') | cc/picture_pile_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698