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

Unified Diff: cc/tiles/tile.cc

Issue 1202843008: cc: Fix BytesPerPixel issue and refactor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comments. Created 5 years, 5 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
Index: cc/tiles/tile.cc
diff --git a/cc/tiles/tile.cc b/cc/tiles/tile.cc
index 6052e5e0457e0f41cca41eab900166237f0bd6ee..806cf320c75691eb0ab833fe82d0b2df0b774c4e 100644
--- a/cc/tiles/tile.cc
+++ b/cc/tiles/tile.cc
@@ -71,7 +71,7 @@ size_t Tile::GPUMemoryUsageInBytes() const {
if (draw_info_.resource_) {
// We can use UncheckedSizeInBytes, since the tile size is determined by the
// compositor.
- return Resource::UncheckedMemorySizeBytes(draw_info_.resource_->size(),
+ return ResourceUtil::UncheckedSizeInBytes(draw_info_.resource_->size(),
draw_info_.resource_->format());
}
return 0;

Powered by Google App Engine
This is Rietveld 408576698