OLD | NEW |
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 #ifndef CC_RESOURCES_TILE_MANAGER_H_ | 5 #ifndef CC_RESOURCES_TILE_MANAGER_H_ |
6 #define CC_RESOURCES_TILE_MANAGER_H_ | 6 #define CC_RESOURCES_TILE_MANAGER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <queue> | 9 #include <queue> |
10 #include <set> | 10 #include <set> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/containers/hash_tables.h" | 14 #include "base/containers/hash_tables.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "cc/base/ref_counted_managed.h" | 17 #include "cc/base/ref_counted_managed.h" |
18 #include "cc/base/unique_notifier.h" | 18 #include "cc/base/unique_notifier.h" |
19 #include "cc/resources/eviction_tile_priority_queue.h" | 19 #include "cc/resources/eviction_tile_priority_queue.h" |
20 #include "cc/resources/memory_history.h" | 20 #include "cc/resources/memory_history.h" |
21 #include "cc/resources/raster_source.h" | 21 #include "cc/resources/raster_source.h" |
22 #include "cc/resources/raster_tile_priority_queue.h" | 22 #include "cc/resources/raster_tile_priority_queue.h" |
23 #include "cc/resources/resource_pool.h" | 23 #include "cc/resources/resource_pool.h" |
24 #include "cc/resources/tile.h" | 24 #include "cc/resources/tile.h" |
25 #include "cc/resources/tile_draw_info.h" | 25 #include "cc/resources/tile_draw_info.h" |
26 #include "cc/resources/tile_task_runner.h" | 26 #include "cc/resources/tile_task_runner.h" |
27 | 27 |
28 namespace base { | 28 namespace base { |
29 namespace debug { | 29 namespace trace_event { |
30 class ConvertableToTraceFormat; | 30 class ConvertableToTraceFormat; |
31 class TracedValue; | 31 class TracedValue; |
32 } | 32 } |
| 33 |
| 34 // TODO(ssid): remove these aliases after the tracing clients are moved to the |
| 35 // new trace_event namespace. See crbug.com/451032. ETA: March 2015 |
| 36 namespace debug { |
| 37 using ::base::trace_event::ConvertableToTraceFormat; |
| 38 using ::base::trace_event::TracedValue; |
33 } | 39 } |
| 40 } // namespace base |
34 | 41 |
35 namespace cc { | 42 namespace cc { |
36 class PictureLayerImpl; | 43 class PictureLayerImpl; |
37 class Rasterizer; | 44 class Rasterizer; |
38 class ResourceProvider; | 45 class ResourceProvider; |
39 | 46 |
40 class CC_EXPORT TileManagerClient { | 47 class CC_EXPORT TileManagerClient { |
41 public: | 48 public: |
42 // Called when all tiles marked as required for activation are ready to draw. | 49 // Called when all tiles marked as required for activation are ready to draw. |
43 virtual void NotifyReadyToActivate() = 0; | 50 virtual void NotifyReadyToActivate() = 0; |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 | 318 |
312 bool did_notify_ready_to_activate_; | 319 bool did_notify_ready_to_activate_; |
313 bool did_notify_ready_to_draw_; | 320 bool did_notify_ready_to_draw_; |
314 | 321 |
315 DISALLOW_COPY_AND_ASSIGN(TileManager); | 322 DISALLOW_COPY_AND_ASSIGN(TileManager); |
316 }; | 323 }; |
317 | 324 |
318 } // namespace cc | 325 } // namespace cc |
319 | 326 |
320 #endif // CC_RESOURCES_TILE_MANAGER_H_ | 327 #endif // CC_RESOURCES_TILE_MANAGER_H_ |
OLD | NEW |