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_H_ | 5 #ifndef CC_RESOURCES_TILE_H_ |
6 #define CC_RESOURCES_TILE_H_ | 6 #define CC_RESOURCES_TILE_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "cc/base/ref_counted_managed.h" | 9 #include "cc/base/ref_counted_managed.h" |
10 #include "cc/resources/raster_source.h" | 10 #include "cc/resources/raster_source.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 bool use_picture_analysis() const { | 95 bool use_picture_analysis() const { |
96 return !!(flags_ & USE_PICTURE_ANALYSIS); | 96 return !!(flags_ & USE_PICTURE_ANALYSIS); |
97 } | 97 } |
98 | 98 |
99 bool HasResource() const { return draw_info_.has_resource(); } | 99 bool HasResource() const { return draw_info_.has_resource(); } |
100 bool NeedsRaster() const { | 100 bool NeedsRaster() const { |
101 return draw_info_.mode() == TileDrawInfo::PICTURE_PILE_MODE || | 101 return draw_info_.mode() == TileDrawInfo::PICTURE_PILE_MODE || |
102 !draw_info_.IsReadyToDraw(); | 102 !draw_info_.IsReadyToDraw(); |
103 } | 103 } |
104 | 104 |
105 void AsValueInto(base::debug::TracedValue* dict) const; | 105 void AsValueInto(base::trace_event::TracedValue* dict) const; |
106 | 106 |
107 inline bool IsReadyToDraw() const { return draw_info_.IsReadyToDraw(); } | 107 inline bool IsReadyToDraw() const { return draw_info_.IsReadyToDraw(); } |
108 | 108 |
109 const TileDrawInfo& draw_info() const { return draw_info_; } | 109 const TileDrawInfo& draw_info() const { return draw_info_; } |
110 | 110 |
111 TileDrawInfo& draw_info() { return draw_info_; } | 111 TileDrawInfo& draw_info() { return draw_info_; } |
112 | 112 |
113 float contents_scale() const { return contents_scale_; } | 113 float contents_scale() const { return contents_scale_; } |
114 gfx::Rect content_rect() const { return content_rect_; } | 114 gfx::Rect content_rect() const { return content_rect_; } |
115 | 115 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 unsigned scheduled_priority_; | 180 unsigned scheduled_priority_; |
181 | 181 |
182 scoped_refptr<RasterTask> raster_task_; | 182 scoped_refptr<RasterTask> raster_task_; |
183 | 183 |
184 DISALLOW_COPY_AND_ASSIGN(Tile); | 184 DISALLOW_COPY_AND_ASSIGN(Tile); |
185 }; | 185 }; |
186 | 186 |
187 } // namespace cc | 187 } // namespace cc |
188 | 188 |
189 #endif // CC_RESOURCES_TILE_H_ | 189 #endif // CC_RESOURCES_TILE_H_ |
OLD | NEW |