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

Unified Diff: cc/layers/picture_layer.cc

Issue 903273002: Update from https://crrev.com/315085 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « cc/layers/picture_image_layer_unittest.cc ('k') | cc/layers/picture_layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer.cc
diff --git a/cc/layers/picture_layer.cc b/cc/layers/picture_layer.cc
index 0b7d699d533acf08013cd3f42617d7f6a8892574..52288e90c8e10260ab94beb14db4175fc3384701 100644
--- a/cc/layers/picture_layer.cc
+++ b/cc/layers/picture_layer.cc
@@ -148,7 +148,7 @@ bool PictureLayer::Update(ResourceUpdateQueue* queue,
updated |= recording_source_->UpdateAndExpandInvalidation(
client_, &recording_invalidation_, can_use_lcd_text_for_update_,
layer_size, visible_layer_rect, update_source_frame_number_,
- Picture::RECORD_NORMALLY);
+ RecordingSource::RECORD_NORMALLY);
last_updated_visible_content_rect_ = visible_content_rect();
if (updated) {
@@ -192,9 +192,8 @@ skia::RefPtr<SkPicture> PictureLayer::GetPicture() const {
SkPictureRecorder recorder;
SkCanvas* canvas = recorder.beginRecording(width, height, nullptr, 0);
- client_->PaintContents(canvas,
- gfx::Rect(width, height),
- ContentLayerClient::GRAPHICS_CONTEXT_ENABLED);
+ client_->PaintContents(canvas, gfx::Rect(width, height),
+ ContentLayerClient::PAINTING_BEHAVIOR_NORMAL);
skia::RefPtr<SkPicture> picture = skia::AdoptRef(recorder.endRecording());
return picture;
}
« no previous file with comments | « cc/layers/picture_image_layer_unittest.cc ('k') | cc/layers/picture_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698