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

Unified Diff: cc/debug/frame_timing_tracker_unittest.cc

Issue 1177033008: cc: Turn impl_side_painting and use_one_copy on in LayerTreeSettings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: implon: fixwebkittests 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 | « cc/blink/web_layer_impl_fixed_bounds_unittest.cc ('k') | cc/debug/micro_benchmark_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/frame_timing_tracker_unittest.cc
diff --git a/cc/debug/frame_timing_tracker_unittest.cc b/cc/debug/frame_timing_tracker_unittest.cc
index 2b5f941c0cb30b2d3cda8e8781088e30ca17918a..218927cf26ad1451e63304e8290ff0ee57397b64 100644
--- a/cc/debug/frame_timing_tracker_unittest.cc
+++ b/cc/debug/frame_timing_tracker_unittest.cc
@@ -12,6 +12,7 @@
#include "cc/test/fake_impl_proxy.h"
#include "cc/test/fake_layer_tree_host_impl.h"
#include "cc/test/test_shared_bitmap_manager.h"
+#include "cc/test/test_task_graph_runner.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace cc {
@@ -75,7 +76,9 @@ std::string MainFrameToString(
TEST(FrameTimingTrackerTest, DefaultTrackerIsEmpty) {
FakeImplProxy proxy;
TestSharedBitmapManager shared_bitmap_manager;
- FakeLayerTreeHostImpl host_impl(&proxy, &shared_bitmap_manager, nullptr);
+ TestTaskGraphRunner task_graph_runner;
+ FakeLayerTreeHostImpl host_impl(&proxy, &shared_bitmap_manager,
+ &task_graph_runner);
scoped_ptr<FrameTimingTracker> tracker(
FrameTimingTracker::Create(&host_impl));
@@ -88,7 +91,9 @@ TEST(FrameTimingTrackerTest, DefaultTrackerIsEmpty) {
TEST(FrameTimingTrackerTest, NoFrameIdsIsEmpty) {
FakeImplProxy proxy;
TestSharedBitmapManager shared_bitmap_manager;
- FakeLayerTreeHostImpl host_impl(&proxy, &shared_bitmap_manager, nullptr);
+ TestTaskGraphRunner task_graph_runner;
+ FakeLayerTreeHostImpl host_impl(&proxy, &shared_bitmap_manager,
+ &task_graph_runner);
scoped_ptr<FrameTimingTracker> tracker(
FrameTimingTracker::Create(&host_impl));
@@ -101,7 +106,9 @@ TEST(FrameTimingTrackerTest, NoFrameIdsIsEmpty) {
TEST(FrameTimingTrackerTest, NoRectIdsYieldsNoMainFrameEvents) {
FakeImplProxy proxy;
TestSharedBitmapManager shared_bitmap_manager;
- FakeLayerTreeHostImpl host_impl(&proxy, &shared_bitmap_manager, nullptr);
+ TestTaskGraphRunner task_graph_runner;
+ FakeLayerTreeHostImpl host_impl(&proxy, &shared_bitmap_manager,
+ &task_graph_runner);
scoped_ptr<FrameTimingTracker> tracker(
FrameTimingTracker::Create(&host_impl));
@@ -115,7 +122,9 @@ TEST(FrameTimingTrackerTest, NoRectIdsYieldsNoMainFrameEvents) {
TEST(FrameTimingTrackerTest, OneFrameId) {
FakeImplProxy proxy;
TestSharedBitmapManager shared_bitmap_manager;
- FakeLayerTreeHostImpl host_impl(&proxy, &shared_bitmap_manager, nullptr);
+ TestTaskGraphRunner task_graph_runner;
+ FakeLayerTreeHostImpl host_impl(&proxy, &shared_bitmap_manager,
+ &task_graph_runner);
scoped_ptr<FrameTimingTracker> tracker(
FrameTimingTracker::Create(&host_impl));
@@ -131,7 +140,9 @@ TEST(FrameTimingTrackerTest, OneFrameId) {
TEST(FrameTimingTrackerTest, OneMainFrameRect) {
FakeImplProxy proxy;
TestSharedBitmapManager shared_bitmap_manager;
- FakeLayerTreeHostImpl host_impl(&proxy, &shared_bitmap_manager, nullptr);
+ TestTaskGraphRunner task_graph_runner;
+ FakeLayerTreeHostImpl host_impl(&proxy, &shared_bitmap_manager,
+ &task_graph_runner);
scoped_ptr<FrameTimingTracker> tracker(
FrameTimingTracker::Create(&host_impl));
@@ -149,7 +160,9 @@ TEST(FrameTimingTrackerTest, OneMainFrameRect) {
TEST(FrameTimingTrackerTest, UnsortedTimestampsIds) {
FakeImplProxy proxy;
TestSharedBitmapManager shared_bitmap_manager;
- FakeLayerTreeHostImpl host_impl(&proxy, &shared_bitmap_manager, nullptr);
+ TestTaskGraphRunner task_graph_runner;
+ FakeLayerTreeHostImpl host_impl(&proxy, &shared_bitmap_manager,
+ &task_graph_runner);
scoped_ptr<FrameTimingTracker> tracker(
FrameTimingTracker::Create(&host_impl));
@@ -169,7 +182,9 @@ TEST(FrameTimingTrackerTest, UnsortedTimestampsIds) {
TEST(FrameTimingTrackerTest, MainFrameUnsortedTimestamps) {
FakeImplProxy proxy;
TestSharedBitmapManager shared_bitmap_manager;
- FakeLayerTreeHostImpl host_impl(&proxy, &shared_bitmap_manager, nullptr);
+ TestTaskGraphRunner task_graph_runner;
+ FakeLayerTreeHostImpl host_impl(&proxy, &shared_bitmap_manager,
+ &task_graph_runner);
scoped_ptr<FrameTimingTracker> tracker(
FrameTimingTracker::Create(&host_impl));
@@ -195,7 +210,9 @@ TEST(FrameTimingTrackerTest, MainFrameUnsortedTimestamps) {
TEST(FrameTimingTrackerTest, MultipleFrameIds) {
FakeImplProxy proxy;
TestSharedBitmapManager shared_bitmap_manager;
- FakeLayerTreeHostImpl host_impl(&proxy, &shared_bitmap_manager, nullptr);
+ TestTaskGraphRunner task_graph_runner;
+ FakeLayerTreeHostImpl host_impl(&proxy, &shared_bitmap_manager,
+ &task_graph_runner);
scoped_ptr<FrameTimingTracker> tracker(
FrameTimingTracker::Create(&host_impl));
@@ -232,7 +249,9 @@ TEST(FrameTimingTrackerTest, MultipleFrameIds) {
TEST(FrameTimingTrackerTest, MultipleMainFrameEvents) {
FakeImplProxy proxy;
TestSharedBitmapManager shared_bitmap_manager;
- FakeLayerTreeHostImpl host_impl(&proxy, &shared_bitmap_manager, nullptr);
+ TestTaskGraphRunner task_graph_runner;
+ FakeLayerTreeHostImpl host_impl(&proxy, &shared_bitmap_manager,
+ &task_graph_runner);
scoped_ptr<FrameTimingTracker> tracker(
FrameTimingTracker::Create(&host_impl));
« no previous file with comments | « cc/blink/web_layer_impl_fixed_bounds_unittest.cc ('k') | cc/debug/micro_benchmark_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698