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

Unified Diff: cc/layers/content_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/input/input_handler.h ('k') | cc/layers/content_layer_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/content_layer.cc
diff --git a/cc/layers/content_layer.cc b/cc/layers/content_layer.cc
index 53c7120c09b11bc1addbb4525290dfe6d27f78f3..6af92ec45d47e09b9a4133e00021c11c8926fcc8 100644
--- a/cc/layers/content_layer.cc
+++ b/cc/layers/content_layer.cc
@@ -26,9 +26,8 @@ scoped_ptr<ContentLayerPainter> ContentLayerPainter::Create(
void ContentLayerPainter::Paint(SkCanvas* canvas,
const gfx::Rect& content_rect) {
- client_->PaintContents(canvas,
- content_rect,
- ContentLayerClient::GRAPHICS_CONTEXT_ENABLED);
+ client_->PaintContents(canvas, content_rect,
+ ContentLayerClient::PAINTING_BEHAVIOR_NORMAL);
}
scoped_refptr<ContentLayer> ContentLayer::Create(ContentLayerClient* client) {
@@ -128,9 +127,8 @@ skia::RefPtr<SkPicture> ContentLayer::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/input/input_handler.h ('k') | cc/layers/content_layer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698