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

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

Issue 1531013004: cc: Do solid color analysis before scheduling tiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup. Created 4 years, 11 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
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_TILES_TILE_H_ 5 #ifndef CC_TILES_TILE_H_
6 #define CC_TILES_TILE_H_ 6 #define CC_TILES_TILE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "cc/tiles/tile_draw_info.h" 9 #include "cc/tiles/tile_draw_info.h"
10 #include "ui/gfx/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // TODO(vmpstr): Move this to the iterators. 54 // TODO(vmpstr): Move this to the iterators.
55 bool required_for_activation() const { return required_for_activation_; } 55 bool required_for_activation() const { return required_for_activation_; }
56 void set_required_for_activation(bool is_required) { 56 void set_required_for_activation(bool is_required) {
57 required_for_activation_ = is_required; 57 required_for_activation_ = is_required;
58 } 58 }
59 bool required_for_draw() const { return required_for_draw_; } 59 bool required_for_draw() const { return required_for_draw_; }
60 void set_required_for_draw(bool is_required) { 60 void set_required_for_draw(bool is_required) {
61 required_for_draw_ = is_required; 61 required_for_draw_ = is_required;
62 } 62 }
63 63
64 bool use_picture_analysis() const {
vmpstr 2015/12/29 21:24:23 Keep this
sohanjg 2015/12/30 12:45:47 Acknowledged.
65 return !!(flags_ & USE_PICTURE_ANALYSIS);
66 }
67
68 bool is_opaque() const { return !!(flags_ & IS_OPAQUE); } 64 bool is_opaque() const { return !!(flags_ & IS_OPAQUE); }
69 65
70 void AsValueInto(base::trace_event::TracedValue* value) const; 66 void AsValueInto(base::trace_event::TracedValue* value) const;
71 67
72 const TileDrawInfo& draw_info() const { return draw_info_; } 68 const TileDrawInfo& draw_info() const { return draw_info_; }
73 TileDrawInfo& draw_info() { return draw_info_; } 69 TileDrawInfo& draw_info() { return draw_info_; }
74 70
75 float contents_scale() const { return contents_scale_; } 71 float contents_scale() const { return contents_scale_; }
76 const gfx::Rect& content_rect() const { return content_rect_; } 72 const gfx::Rect& content_rect() const { return content_rect_; }
77 const gfx::Rect& enclosing_layer_rect() const { 73 const gfx::Rect& enclosing_layer_rect() const {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 scoped_refptr<RasterTask> raster_task_; 139 scoped_refptr<RasterTask> raster_task_;
144 140
145 DISALLOW_COPY_AND_ASSIGN(Tile); 141 DISALLOW_COPY_AND_ASSIGN(Tile);
146 }; 142 };
147 143
148 using ScopedTilePtr = scoped_ptr<Tile, Tile::Deleter>; 144 using ScopedTilePtr = scoped_ptr<Tile, Tile::Deleter>;
149 145
150 } // namespace cc 146 } // namespace cc
151 147
152 #endif // CC_TILES_TILE_H_ 148 #endif // CC_TILES_TILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698