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

Side by Side Diff: cc/layers/texture_layer_unittest.cc

Issue 2266223002: cc: Compute draw transforms dynamically. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix layout tests Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/layers/texture_layer.h" 5 #include "cc/layers/texture_layer.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 public: 69 public:
70 static std::unique_ptr<MockLayerTreeHost> Create( 70 static std::unique_ptr<MockLayerTreeHost> Create(
71 FakeLayerTreeHostClient* client, 71 FakeLayerTreeHostClient* client,
72 TaskGraphRunner* task_graph_runner) { 72 TaskGraphRunner* task_graph_runner) {
73 LayerTreeHost::InitParams params; 73 LayerTreeHost::InitParams params;
74 params.client = client; 74 params.client = client;
75 params.task_graph_runner = task_graph_runner; 75 params.task_graph_runner = task_graph_runner;
76 params.animation_host = 76 params.animation_host =
77 AnimationHost::CreateForTesting(ThreadInstance::MAIN); 77 AnimationHost::CreateForTesting(ThreadInstance::MAIN);
78 LayerTreeSettings settings; 78 LayerTreeSettings settings;
79 settings.verify_transform_tree_calculations = true;
80 settings.verify_clip_tree_calculations = true; 79 settings.verify_clip_tree_calculations = true;
81 params.settings = &settings; 80 params.settings = &settings;
82 return base::WrapUnique(new MockLayerTreeHost(&params)); 81 return base::WrapUnique(new MockLayerTreeHost(&params));
83 } 82 }
84 83
85 MOCK_METHOD0(SetNeedsCommit, void()); 84 MOCK_METHOD0(SetNeedsCommit, void());
86 MOCK_METHOD0(SetNeedsUpdateLayers, void()); 85 MOCK_METHOD0(SetNeedsUpdateLayers, void());
87 MOCK_METHOD0(StartRateLimiter, void()); 86 MOCK_METHOD0(StartRateLimiter, void());
88 MOCK_METHOD0(StopRateLimiter, void()); 87 MOCK_METHOD0(StopRateLimiter, void());
89 88
(...skipping 1362 matching lines...) Expand 10 before | Expand all | Expand 10 after
1452 base::ThreadChecker main_thread_; 1451 base::ThreadChecker main_thread_;
1453 int callback_count_; 1452 int callback_count_;
1454 scoped_refptr<Layer> root_; 1453 scoped_refptr<Layer> root_;
1455 scoped_refptr<TextureLayer> layer_; 1454 scoped_refptr<TextureLayer> layer_;
1456 }; 1455 };
1457 1456
1458 SINGLE_AND_MULTI_THREAD_TEST_F(TextureLayerWithMailboxImplThreadDeleted); 1457 SINGLE_AND_MULTI_THREAD_TEST_F(TextureLayerWithMailboxImplThreadDeleted);
1459 1458
1460 } // namespace 1459 } // namespace
1461 } // namespace cc 1460 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698