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

Side by Side Diff: cc/test/layer_tree_test.h

Issue 1063493002: cc: Remove all traces of synchronous GPU rasterization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 8 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
« no previous file with comments | « cc/test/layer_tree_pixel_resource_test.cc ('k') | cc/test/layer_tree_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 #ifndef CC_TEST_LAYER_TREE_TEST_H_ 5 #ifndef CC_TEST_LAYER_TREE_TEST_H_
6 #define CC_TEST_LAYER_TREE_TEST_H_ 6 #define CC_TEST_LAYER_TREE_TEST_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/threading/thread.h" 9 #include "base/threading/thread.h"
10 #include "cc/animation/animation_delegate.h" 10 #include "cc/animation/animation_delegate.h"
(...skipping 14 matching lines...) Expand all
25 class TestWebGraphicsContext3D; 25 class TestWebGraphicsContext3D;
26 26
27 // Used by test stubs to notify the test when something interesting happens. 27 // Used by test stubs to notify the test when something interesting happens.
28 class TestHooks : public AnimationDelegate { 28 class TestHooks : public AnimationDelegate {
29 public: 29 public:
30 TestHooks(); 30 TestHooks();
31 ~TestHooks() override; 31 ~TestHooks() override;
32 32
33 void ReadSettings(const LayerTreeSettings& settings); 33 void ReadSettings(const LayerTreeSettings& settings);
34 34
35 virtual scoped_ptr<Rasterizer> CreateRasterizer(LayerTreeHostImpl* host_impl);
36 virtual void CreateResourceAndTileTaskWorkerPool( 35 virtual void CreateResourceAndTileTaskWorkerPool(
37 LayerTreeHostImpl* host_impl, 36 LayerTreeHostImpl* host_impl,
38 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool, 37 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool,
39 scoped_ptr<ResourcePool>* resource_pool, 38 scoped_ptr<ResourcePool>* resource_pool,
40 scoped_ptr<ResourcePool>* staging_resource_pool); 39 scoped_ptr<ResourcePool>* staging_resource_pool);
41 virtual void WillBeginImplFrameOnThread(LayerTreeHostImpl* host_impl, 40 virtual void WillBeginImplFrameOnThread(LayerTreeHostImpl* host_impl,
42 const BeginFrameArgs& args) {} 41 const BeginFrameArgs& args) {}
43 virtual void BeginMainFrameAbortedOnThread(LayerTreeHostImpl* host_impl, 42 virtual void BeginMainFrameAbortedOnThread(LayerTreeHostImpl* host_impl,
44 CommitEarlyOutReason reason) {} 43 CommitEarlyOutReason reason) {}
45 virtual void BeginCommitOnThread(LayerTreeHostImpl* host_impl) {} 44 virtual void BeginCommitOnThread(LayerTreeHostImpl* host_impl) {}
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ 379 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \
381 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) 380 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME)
382 381
383 // Some tests want to control when notify ready for activation occurs, 382 // Some tests want to control when notify ready for activation occurs,
384 // but this is not supported in the single-threaded case. 383 // but this is not supported in the single-threaded case.
385 #define SINGLE_AND_MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ 384 #define SINGLE_AND_MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \
386 SINGLE_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \ 385 SINGLE_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \
387 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) 386 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME)
388 387
389 #endif // CC_TEST_LAYER_TREE_TEST_H_ 388 #endif // CC_TEST_LAYER_TREE_TEST_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_pixel_resource_test.cc ('k') | cc/test/layer_tree_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698