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

Unified Diff: cc/debug/invalidation_benchmark.cc

Issue 1175113010: cc: Rename visible_content_rect and content stuff on quads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename-visible-content-rect: moreandroid Created 5 years, 6 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 | « android_webview/browser/hardware_renderer.cc ('k') | cc/debug/rasterize_and_record_benchmark.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/invalidation_benchmark.cc
diff --git a/cc/debug/invalidation_benchmark.cc b/cc/debug/invalidation_benchmark.cc
index 6fd3d3e2fb672be46b33b9b29a7381977400046b..8a9fc883224829329f72d473a20fc6f708fd0892 100644
--- a/cc/debug/invalidation_benchmark.cc
+++ b/cc/debug/invalidation_benchmark.cc
@@ -71,9 +71,9 @@ void InvalidationBenchmark::RunOnLayer(PictureLayer* layer) {
switch (mode_) {
case FIXED_SIZE: {
// Invalidation with a random position and fixed size.
- gfx::Rect visible_content_rect = layer->visible_content_rect();
- int x = LCGRandom() * (visible_content_rect.width() - width_);
- int y = LCGRandom() * (visible_content_rect.height() - height_);
+ gfx::Rect visible_layer_rect = layer->visible_layer_rect();
+ int x = LCGRandom() * (visible_layer_rect.width() - width_);
+ int y = LCGRandom() * (visible_layer_rect.height() - height_);
gfx::Rect invalidation_rect(x, y, width_, height_);
layer->SetNeedsDisplayRect(invalidation_rect);
break;
@@ -85,11 +85,11 @@ void InvalidationBenchmark::RunOnLayer(PictureLayer* layer) {
}
case RANDOM: {
// Random invalidation inside the viewport.
- gfx::Rect visible_content_rect = layer->visible_content_rect();
- int x_min = LCGRandom() * visible_content_rect.width();
- int x_max = LCGRandom() * visible_content_rect.width();
- int y_min = LCGRandom() * visible_content_rect.height();
- int y_max = LCGRandom() * visible_content_rect.height();
+ gfx::Rect visible_layer_rect = layer->visible_layer_rect();
+ int x_min = LCGRandom() * visible_layer_rect.width();
+ int x_max = LCGRandom() * visible_layer_rect.width();
+ int y_min = LCGRandom() * visible_layer_rect.height();
+ int y_max = LCGRandom() * visible_layer_rect.height();
if (x_min > x_max)
std::swap(x_min, x_max);
if (y_min > y_max)
@@ -100,7 +100,7 @@ void InvalidationBenchmark::RunOnLayer(PictureLayer* layer) {
}
case VIEWPORT: {
// Invalidate entire viewport.
- layer->SetNeedsDisplayRect(layer->visible_content_rect());
+ layer->SetNeedsDisplayRect(layer->visible_layer_rect());
break;
}
}
« no previous file with comments | « android_webview/browser/hardware_renderer.cc ('k') | cc/debug/rasterize_and_record_benchmark.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698