Remove use of kUsePathBoundsForClip_RecordingFlag

The behavior once invoked by the
SkPicture::kUsePathBoundsForClip_RecordingFlag is now
 the default so this flag is going away.
Skia 9f1c241e 
(Remove SkPicture::kUsePathBoundsForClip_RecordingFlag -
 https://codereview.chromium.org/316143003/)

cc: enne@
skia: fmalita@

Review URL: https://codereview.chromium.org/322123002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276754 0039d316-1c4b-4281-b951-d872f2087c98
parent a9c64d48
......@@ -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);
......
......@@ -348,10 +348,7 @@ skia::RefPtr<SkPicture> PicturePileImpl::GetFlattenedPicture() {
gfx::Rect tiling_rect(tiling_.tiling_rect());
SkPictureRecorder recorder;
SkCanvas* canvas =
recorder.beginRecording(tiling_rect.width(),
tiling_rect.height(),
NULL,
SkPicture::kUsePathBoundsForClip_RecordingFlag);
recorder.beginRecording(tiling_rect.width(), tiling_rect.height());
if (!tiling_rect.IsEmpty())
RasterToBitmap(canvas, tiling_rect, 1.0, NULL);
skia::RefPtr<SkPicture> picture = skia::AdoptRef(recorder.endRecording());
......
......@@ -73,11 +73,8 @@ void CreateBitmap(gfx::Size size, const char* uri, SkBitmap* bitmap) {
}
SkCanvas* StartRecording(SkPictureRecorder* recorder, gfx::Rect layer_rect) {
SkCanvas* canvas = recorder->beginRecording(
layer_rect.width(),
layer_rect.height(),
NULL,
SkPicture::kUsePathBoundsForClip_RecordingFlag);
SkCanvas* canvas =
recorder->beginRecording(layer_rect.width(), layer_rect.height());
canvas->save();
canvas->translate(-layer_rect.x(), -layer_rect.y());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment