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

Unified Diff: cc/resources/bitmap_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/bitmap_content_layer_updater.h ('k') | cc/resources/content_layer_updater.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/bitmap_content_layer_updater.cc
diff --git a/cc/resources/bitmap_content_layer_updater.cc b/cc/resources/bitmap_content_layer_updater.cc
index 5588b0730e35aa87dad4bd3a20d1a00600cb567b..0b2ac0024e63a27fa98d52a37c5709c9db74c807 100644
--- a/cc/resources/bitmap_content_layer_updater.cc
+++ b/cc/resources/bitmap_content_layer_updater.cc
@@ -54,12 +54,10 @@ scoped_ptr<LayerUpdater::Resource> BitmapContentLayerUpdater::CreateResource(
new Resource(this, PrioritizedResource::Create(manager)));
}
-void BitmapContentLayerUpdater::PrepareToUpdate(
- const gfx::Rect& content_rect,
- const gfx::Size& tile_size,
- float contents_width_scale,
- float contents_height_scale,
- gfx::Rect* resulting_opaque_rect) {
+void BitmapContentLayerUpdater::PrepareToUpdate(const gfx::Rect& content_rect,
+ const gfx::Size& tile_size,
+ float contents_width_scale,
+ float contents_height_scale) {
if (canvas_size_ != content_rect.size()) {
devtools_instrumentation::ScopedLayerTask paint_setup(
devtools_instrumentation::kPaintSetup, layer_id_);
@@ -74,11 +72,8 @@ void BitmapContentLayerUpdater::PrepareToUpdate(
base::TimeTicks start_time =
rendering_stats_instrumentation_->StartRecording();
- PaintContents(canvas_.get(),
- content_rect,
- contents_width_scale,
- contents_height_scale,
- resulting_opaque_rect);
+ PaintContents(
+ canvas_.get(), content_rect, contents_width_scale, contents_height_scale);
base::TimeDelta duration =
rendering_stats_instrumentation_->EndRecording(start_time);
rendering_stats_instrumentation_->AddPaint(
« no previous file with comments | « cc/resources/bitmap_content_layer_updater.h ('k') | cc/resources/content_layer_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698