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

Unified Diff: cc/resources/content_layer_updater.cc

Issue 85143002: Dirty rects always contain full tiles with delegated rendering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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/resources/content_layer_updater.cc
diff --git a/cc/resources/content_layer_updater.cc b/cc/resources/content_layer_updater.cc
index e3f87a4c272a08aca0278226cd83c74294c52c5c..86cb582cee791eaa9cc988d9d7efd346a93135aa 100644
--- a/cc/resources/content_layer_updater.cc
+++ b/cc/resources/content_layer_updater.cc
@@ -24,8 +24,8 @@ ContentLayerUpdater::ContentLayerUpdater(
int layer_id)
: rendering_stats_instrumentation_(stats_instrumentation),
layer_id_(layer_id),
- painter_(painter.Pass()),
- layer_is_opaque_(false) {}
+ layer_is_opaque_(false),
+ painter_(painter.Pass()) {}
ContentLayerUpdater::~ContentLayerUpdater() {}
@@ -36,6 +36,7 @@ void ContentLayerUpdater::set_rendering_stats_instrumentation(
void ContentLayerUpdater::PaintContents(SkCanvas* canvas,
gfx::Rect content_rect,
+ gfx::Rect paint_rect,
float contents_width_scale,
float contents_height_scale,
gfx::Rect* resulting_opaque_rect) {
@@ -80,6 +81,7 @@ void ContentLayerUpdater::PaintContents(SkCanvas* canvas,
*resulting_opaque_rect = opaque_content_rect;
content_rect_ = content_rect;
+ paint_rect_ = paint_rect;
}
void ContentLayerUpdater::SetOpaque(bool opaque) {

Powered by Google App Engine
This is Rietveld 408576698