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

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

Issue 1774533002: Set debug color for borders of compressed tiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/layers/picture_layer_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_TILES_TILE_DRAW_INFO_H_ 5 #ifndef CC_TILES_TILE_DRAW_INFO_H_
6 #define CC_TILES_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/raster/tile_task_runner.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 } 66 }
67 67
68 bool contents_swizzled() const { return contents_swizzled_; } 68 bool contents_swizzled() const { return contents_swizzled_; }
69 69
70 bool requires_resource() const { 70 bool requires_resource() const {
71 return mode_ == RESOURCE_MODE || mode_ == OOM_MODE; 71 return mode_ == RESOURCE_MODE || mode_ == OOM_MODE;
72 } 72 }
73 73
74 inline bool has_resource() const { return !!resource_; } 74 inline bool has_resource() const { return !!resource_; }
75 75
76 inline bool has_compressed_resource() const {
77 return resource_ ? IsResourceFormatCompressed(resource_->format()) : false;
78 }
79
76 void SetSolidColorForTesting(SkColor color) { set_solid_color(color); } 80 void SetSolidColorForTesting(SkColor color) { set_solid_color(color); }
77 81
78 void AsValueInto(base::trace_event::TracedValue* state) const; 82 void AsValueInto(base::trace_event::TracedValue* state) const;
79 83
80 void set_was_ever_ready_to_draw() { was_ever_ready_to_draw_ = true; } 84 void set_was_ever_ready_to_draw() { was_ever_ready_to_draw_ = true; }
81 void set_was_ever_used_to_draw() { was_ever_used_to_draw_ = true; } 85 void set_was_ever_used_to_draw() { was_ever_used_to_draw_ = true; }
82 86
83 private: 87 private:
84 friend class Tile; 88 friend class Tile;
85 friend class TileManager; 89 friend class TileManager;
(...skipping 13 matching lines...) Expand all
99 bool contents_swizzled_; 103 bool contents_swizzled_;
100 104
101 // Used for gathering UMA stats. 105 // Used for gathering UMA stats.
102 bool was_ever_ready_to_draw_; 106 bool was_ever_ready_to_draw_;
103 bool was_ever_used_to_draw_; 107 bool was_ever_used_to_draw_;
104 }; 108 };
105 109
106 } // namespace cc 110 } // namespace cc
107 111
108 #endif // CC_TILES_TILE_DRAW_INFO_H_ 112 #endif // CC_TILES_TILE_DRAW_INFO_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698