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

Unified Diff: cc/debug/invalidation_benchmark.cc

Issue 2661523003: cc: Merge LayerTree into the LayerTreeHost. (Closed)
Patch Set: auto Created 3 years, 11 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/debug/invalidation_benchmark.h ('k') | cc/debug/micro_benchmark.h » ('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 3923c14a3b7cfec293a7ab8929eedc600ab5e6ec..6e6d343389d0e02b5656c3463d073aefc4daa999 100644
--- a/cc/debug/invalidation_benchmark.cc
+++ b/cc/debug/invalidation_benchmark.cc
@@ -14,7 +14,7 @@
#include "cc/layers/layer.h"
#include "cc/layers/picture_layer.h"
#include "cc/trees/draw_property_utils.h"
-#include "cc/trees/layer_tree.h"
+#include "cc/trees/layer_tree_host.h"
#include "cc/trees/layer_tree_host_common.h"
#include "ui/gfx/geometry/rect.h"
@@ -63,9 +63,10 @@ InvalidationBenchmark::InvalidationBenchmark(
InvalidationBenchmark::~InvalidationBenchmark() {
}
-void InvalidationBenchmark::DidUpdateLayers(LayerTree* layer_tree) {
+void InvalidationBenchmark::DidUpdateLayers(LayerTreeHost* layer_tree_host) {
LayerTreeHostCommon::CallFunctionForEveryLayer(
- layer_tree, [this](Layer* layer) { layer->RunMicroBenchmark(this); });
+ layer_tree_host,
+ [this](Layer* layer) { layer->RunMicroBenchmark(this); });
}
void InvalidationBenchmark::RunOnLayer(PictureLayer* layer) {
@@ -75,7 +76,7 @@ void InvalidationBenchmark::RunOnLayer(PictureLayer* layer) {
if (!invertible)
from_screen = gfx::Transform();
gfx::Rect viewport_rect = MathUtil::ProjectEnclosingClippedRect(
- from_screen, gfx::Rect(layer->GetLayerTree()->device_viewport_size()));
+ from_screen, gfx::Rect(layer->layer_tree_host()->device_viewport_size()));
visible_layer_rect.Intersect(viewport_rect);
switch (mode_) {
case FIXED_SIZE: {
« no previous file with comments | « cc/debug/invalidation_benchmark.h ('k') | cc/debug/micro_benchmark.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698