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

Side by Side Diff: cc/resources/tile.h

Issue 879913002: mechanical rename of base::debug -> base::trace_event for /cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_trace_part3
Patch Set: Edited a comment Created 5 years, 10 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
« no previous file with comments | « cc/resources/raster_tile_priority_queue_all.cc ('k') | cc/resources/tile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « cc/resources/raster_tile_priority_queue_all.cc ('k') | cc/resources/tile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698