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

Unified Diff: cc/resources/tile_draw_info.h

Issue 839143002: Roll Chrome into Mojo. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/tile.cc ('k') | cc/resources/tile_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile_draw_info.h
diff --git a/cc/resources/tile_draw_info.h b/cc/resources/tile_draw_info.h
index 2abf93c34390261b7d92b55054c80ecb237c51ca..b6bc6d84b31cb4da10afc619a3e6ba122d30d540 100644
--- a/cc/resources/tile_draw_info.h
+++ b/cc/resources/tile_draw_info.h
@@ -26,16 +26,20 @@ class CC_EXPORT TileDrawInfo {
bool IsReadyToDraw() const;
- ResourceProvider::ResourceId get_resource_id() const {
+ ResourceProvider::ResourceId resource_id() const {
DCHECK(mode_ == RESOURCE_MODE);
DCHECK(resource_);
-
return resource_->id();
}
- SkColor get_solid_color() const {
- DCHECK(mode_ == SOLID_COLOR_MODE);
+ gfx::Size resource_size() const {
+ DCHECK(mode_ == RESOURCE_MODE);
+ DCHECK(resource_);
+ return resource_->size();
+ }
+ SkColor solid_color() const {
+ DCHECK(mode_ == SOLID_COLOR_MODE);
return solid_color_;
}
« no previous file with comments | « cc/resources/tile.cc ('k') | cc/resources/tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698