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

Unified Diff: cc/resources/content_layer_updater.cc

Issue 565043002: cc: Remove the opaque rect return-parameter from ContentLayerClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: contentlayerclientopaque: build Created 6 years, 3 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/resources/content_layer_updater.h ('k') | cc/resources/layer_painter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/content_layer_updater.cc
diff --git a/cc/resources/content_layer_updater.cc b/cc/resources/content_layer_updater.cc
index 249a6e92cd8abba17eb855fb9cf62ec8425c171f..8bd90e9d5a174768abab9709b7a3928540a2eac7 100644
--- a/cc/resources/content_layer_updater.cc
+++ b/cc/resources/content_layer_updater.cc
@@ -37,8 +37,7 @@ void ContentLayerUpdater::set_rendering_stats_instrumentation(
void ContentLayerUpdater::PaintContents(SkCanvas* canvas,
const gfx::Rect& content_rect,
float contents_width_scale,
- float contents_height_scale,
- gfx::Rect* resulting_opaque_rect) {
+ float contents_height_scale) {
TRACE_EVENT0("cc", "ContentLayerUpdater::PaintContents");
if (!canvas)
return;
@@ -71,14 +70,9 @@ void ContentLayerUpdater::PaintContents(SkCanvas* canvas,
canvas->drawColor(SK_ColorTRANSPARENT, SkXfermode::kSrc_Mode);
}
- gfx::RectF opaque_layer_rect;
- painter_->Paint(canvas, layer_rect, &opaque_layer_rect);
+ painter_->Paint(canvas, layer_rect);
canvas->restore();
- gfx::Rect opaque_content_rect = gfx::ToEnclosedRect(gfx::ScaleRect(
- opaque_layer_rect, contents_width_scale, contents_height_scale));
- *resulting_opaque_rect = opaque_content_rect;
-
content_rect_ = content_rect;
}
« no previous file with comments | « cc/resources/content_layer_updater.h ('k') | cc/resources/layer_painter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698