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

Unified Diff: cc/resources/picture.cc

Issue 322123002: Remove use of kUsePathBoundsForClip_RecordingFlag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « no previous file | cc/resources/picture_pile_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture.cc
diff --git a/cc/resources/picture.cc b/cc/resources/picture.cc
index 7147a156b0e28afa0b2b5151c85e9a57d916a3fd..dd37418d924e65a60f703a11e7d28f85ff346fe5 100644
--- a/cc/resources/picture.cc
+++ b/cc/resources/picture.cc
@@ -267,11 +267,8 @@ void Picture::Record(ContentLayerClient* painter,
scoped_ptr<EXPERIMENTAL::SkRecording> recording;
skia::RefPtr<SkCanvas> canvas;
- canvas = skia::SharePtr(
- recorder.beginRecording(layer_rect_.width(),
- layer_rect_.height(),
- &factory,
- SkPicture::kUsePathBoundsForClip_RecordingFlag));
+ canvas = skia::SharePtr(recorder.beginRecording(
+ layer_rect_.width(), layer_rect_.height(), &factory));
ContentLayerClient::GraphicsContextStatus graphics_context_status =
ContentLayerClient::GRAPHICS_CONTEXT_ENABLED;
@@ -448,8 +445,7 @@ scoped_ptr<base::Value> Picture::AsValue() const {
skia::RefPtr<SkCanvas> canvas(skia::SharePtr(recorder.beginRecording(
layer_rect_.width(),
layer_rect_.height(),
- NULL, // Default (no) bounding-box hierarchy is fastest.
- SkPicture::kUsePathBoundsForClip_RecordingFlag)));
+ NULL))); // Default (no) bounding-box hierarchy is fastest.
playback_->draw(canvas.get());
skia::RefPtr<SkPicture> picture(skia::AdoptRef(recorder.endRecording()));
picture->serialize(&stream, &EncodeBitmap);
« no previous file with comments | « no previous file | cc/resources/picture_pile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698