summaryrefslogtreecommitdiffstats
path: root/cc/tiles/tile_draw_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/tiles/tile_draw_info.h')
-rw-r--r--cc/tiles/tile_draw_info.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/cc/tiles/tile_draw_info.h b/cc/tiles/tile_draw_info.h
index 9ba8f24..e11da9c 100644
--- a/cc/tiles/tile_draw_info.h
+++ b/cc/tiles/tile_draw_info.h
@@ -65,10 +65,7 @@ class CC_EXPORT TileDrawInfo {
return solid_color_;
}
- bool contents_swizzled() const {
- DCHECK(resource_);
- return !PlatformColor::SameComponentOrder(resource_->format());
- }
+ bool contents_swizzled() const { return contents_swizzled_; }
bool requires_resource() const {
return mode_ == RESOURCE_MODE || mode_ == OOM_MODE;
@@ -99,6 +96,7 @@ class CC_EXPORT TileDrawInfo {
Mode mode_;
SkColor solid_color_;
scoped_ptr<ScopedResource> resource_;
+ bool contents_swizzled_;
};
} // namespace cc