OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DRAW_INFO_H_ | 5 #ifndef CC_TILES_TILE_DRAW_INFO_H_ |
6 #define CC_RESOURCES_TILE_DRAW_INFO_H_ | 6 #define CC_TILES_TILE_DRAW_INFO_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/trace_event/trace_event_argument.h" | 9 #include "base/trace_event/trace_event_argument.h" |
| 10 #include "cc/raster/tile_task_runner.h" |
10 #include "cc/resources/platform_color.h" | 11 #include "cc/resources/platform_color.h" |
11 #include "cc/resources/resource_provider.h" | 12 #include "cc/resources/resource_provider.h" |
12 #include "cc/resources/scoped_resource.h" | 13 #include "cc/resources/scoped_resource.h" |
13 #include "cc/resources/tile_task_runner.h" | |
14 | 14 |
15 namespace cc { | 15 namespace cc { |
16 | 16 |
17 // This class holds all the state relevant to drawing a tile. | 17 // This class holds all the state relevant to drawing a tile. |
18 class CC_EXPORT TileDrawInfo { | 18 class CC_EXPORT TileDrawInfo { |
19 public: | 19 public: |
20 enum Mode { RESOURCE_MODE, SOLID_COLOR_MODE, OOM_MODE }; | 20 enum Mode { RESOURCE_MODE, SOLID_COLOR_MODE, OOM_MODE }; |
21 | 21 |
22 TileDrawInfo(); | 22 TileDrawInfo(); |
23 ~TileDrawInfo(); | 23 ~TileDrawInfo(); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 96 |
97 void set_oom() { mode_ = OOM_MODE; } | 97 void set_oom() { mode_ = OOM_MODE; } |
98 | 98 |
99 Mode mode_; | 99 Mode mode_; |
100 SkColor solid_color_; | 100 SkColor solid_color_; |
101 scoped_ptr<ScopedResource> resource_; | 101 scoped_ptr<ScopedResource> resource_; |
102 }; | 102 }; |
103 | 103 |
104 } // namespace cc | 104 } // namespace cc |
105 | 105 |
106 #endif // CC_RESOURCES_TILE_DRAW_INFO_H_ | 106 #endif // CC_TILES_TILE_DRAW_INFO_H_ |
OLD | NEW |