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

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

Issue 1139063002: cc: Partial tile update for one-copy raster. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: monocle: tilemanagerconsistency Created 5 years, 7 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 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 212
213 // By default, output surface recreation is synchronous. 213 // By default, output surface recreation is synchronous.
214 void RequestNewOutputSurface() override; 214 void RequestNewOutputSurface() override;
215 // Override this for pixel tests, where you need a real output surface. 215 // Override this for pixel tests, where you need a real output surface.
216 virtual scoped_ptr<OutputSurface> CreateOutputSurface(); 216 virtual scoped_ptr<OutputSurface> CreateOutputSurface();
217 // Override this for unit tests, which should not produce pixel output. 217 // Override this for unit tests, which should not produce pixel output.
218 virtual scoped_ptr<FakeOutputSurface> CreateFakeOutputSurface(); 218 virtual scoped_ptr<FakeOutputSurface> CreateFakeOutputSurface();
219 219
220 TestWebGraphicsContext3D* TestContext(); 220 TestWebGraphicsContext3D* TestContext();
221 221
222 TestGpuMemoryBufferManager* GetTestGpuMemoryBufferManager() {
223 return gpu_memory_buffer_manager_.get();
224 }
225
222 private: 226 private:
223 LayerTreeSettings settings_; 227 LayerTreeSettings settings_;
224 scoped_ptr<LayerTreeHostClientForTesting> client_; 228 scoped_ptr<LayerTreeHostClientForTesting> client_;
225 scoped_ptr<LayerTreeHost> layer_tree_host_; 229 scoped_ptr<LayerTreeHost> layer_tree_host_;
226 FakeOutputSurface* output_surface_; 230 FakeOutputSurface* output_surface_;
227 FakeExternalBeginFrameSource* external_begin_frame_source_; 231 FakeExternalBeginFrameSource* external_begin_frame_source_;
228 232
229 bool beginning_; 233 bool beginning_;
230 bool end_when_begin_returns_; 234 bool end_when_begin_returns_;
231 bool timed_out_; 235 bool timed_out_;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ 384 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \
381 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) 385 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME)
382 386
383 // Some tests want to control when notify ready for activation occurs, 387 // Some tests want to control when notify ready for activation occurs,
384 // but this is not supported in the single-threaded case. 388 // but this is not supported in the single-threaded case.
385 #define SINGLE_AND_MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ 389 #define SINGLE_AND_MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \
386 SINGLE_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \ 390 SINGLE_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \
387 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) 391 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME)
388 392
389 #endif // CC_TEST_LAYER_TREE_TEST_H_ 393 #endif // CC_TEST_LAYER_TREE_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698