OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FAKE_RENDERER_CLIENT_H_ | 5 #ifndef CC_TEST_FAKE_RENDERER_CLIENT_H_ |
6 #define CC_TEST_FAKE_RENDERER_CLIENT_H_ | 6 #define CC_TEST_FAKE_RENDERER_CLIENT_H_ |
7 | 7 |
8 #include "cc/output/renderer.h" | 8 #include "cc/output/renderer.h" |
9 | 9 |
10 namespace cc { | 10 namespace cc { |
11 | 11 |
12 class FakeRendererClient : public RendererClient { | 12 class FakeRendererClient : public RendererClient { |
13 public: | 13 public: |
14 FakeRendererClient(); | 14 FakeRendererClient(); |
15 | 15 |
16 // RendererClient methods. | 16 // RendererClient methods. |
17 virtual void SetFullRootLayerDamage() OVERRIDE; | 17 virtual void SetFullRootLayerDamage() OVERRIDE; |
18 virtual void RunOnDemandRasterTask(Task* on_demand_raster_task) OVERRIDE {} | |
19 | 18 |
20 // Methods added for test. | 19 // Methods added for test. |
21 int set_full_root_layer_damage_count() const { | 20 int set_full_root_layer_damage_count() const { |
22 return set_full_root_layer_damage_count_; | 21 return set_full_root_layer_damage_count_; |
23 } | 22 } |
24 | 23 |
25 private: | 24 private: |
26 int set_full_root_layer_damage_count_; | 25 int set_full_root_layer_damage_count_; |
27 }; | 26 }; |
28 | 27 |
29 } // namespace cc | 28 } // namespace cc |
30 | 29 |
31 #endif // CC_TEST_FAKE_RENDERER_CLIENT_H_ | 30 #endif // CC_TEST_FAKE_RENDERER_CLIENT_H_ |
OLD | NEW |