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

Unified Diff: cc/layers/picture_layer_impl_perftest.cc

Issue 816453008: cc: Split tiling set raster queues into all and required. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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/layers/picture_layer_impl.cc ('k') | cc/layers/picture_layer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl_perftest.cc
diff --git a/cc/layers/picture_layer_impl_perftest.cc b/cc/layers/picture_layer_impl_perftest.cc
index 94f8317fd1298adbb805bb4717c38644e641a68f..a09441ed1dda4cd38aa5b2614eadc769dd4d889e 100644
--- a/cc/layers/picture_layer_impl_perftest.cc
+++ b/cc/layers/picture_layer_impl_perftest.cc
@@ -5,6 +5,7 @@
#include "cc/layers/picture_layer_impl.h"
#include "cc/debug/lap_timer.h"
+#include "cc/resources/tiling_set_raster_queue_all.h"
#include "cc/test/fake_impl_proxy.h"
#include "cc/test/fake_layer_tree_host_impl.h"
#include "cc/test/fake_output_surface.h"
@@ -76,8 +77,8 @@ class PictureLayerImplPerfTest : public testing::Test {
timer_.Reset();
do {
int count = num_tiles;
- scoped_ptr<TilingSetRasterQueue> queue =
- pending_layer_->CreateRasterQueue(false);
+ scoped_ptr<TilingSetRasterQueue> queue(new TilingSetRasterQueueAll(
+ pending_layer_->picture_layer_tiling_set(), false));
while (count--) {
ASSERT_TRUE(!queue->IsEmpty()) << "count: " << count;
ASSERT_TRUE(queue->Top() != nullptr) << "count: " << count;
@@ -99,8 +100,8 @@ class PictureLayerImplPerfTest : public testing::Test {
timer_.Reset();
do {
- scoped_ptr<TilingSetRasterQueue> queue =
- pending_layer_->CreateRasterQueue(false);
+ scoped_ptr<TilingSetRasterQueue> queue(new TilingSetRasterQueueAll(
+ pending_layer_->picture_layer_tiling_set(), false));
timer_.NextLap();
} while (!timer_.HasTimeLimitExpired());
« no previous file with comments | « cc/layers/picture_layer_impl.cc ('k') | cc/layers/picture_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698