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

Unified Diff: cc/resources/resource.cc

Issue 14301021: cc: Don't pass simple well-defined classes by reference. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/resource.h ('k') | cc/resources/resource_pool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource.cc
diff --git a/cc/resources/resource.cc b/cc/resources/resource.cc
index 6c06c3e57215b39cfdb9933829bc8fced966d351..192eaebddc6d0c09fbf35619c8605f3144dff4ac 100644
--- a/cc/resources/resource.cc
+++ b/cc/resources/resource.cc
@@ -7,11 +7,6 @@
namespace cc {
-void Resource::set_dimensions(const gfx::Size& size, GLenum format) {
- size_ = size;
- format_ = format;
-}
-
size_t Resource::bytes() const {
if (size_.IsEmpty())
return 0;
@@ -36,7 +31,7 @@ size_t Resource::BytesPerPixel(GLenum format) {
return components_per_pixel * bytes_per_component;
}
-size_t Resource::MemorySizeBytes(const gfx::Size& size, GLenum format) {
+size_t Resource::MemorySizeBytes(gfx::Size size, GLenum format) {
return BytesPerPixel(format) * size.width() * size.height();
}
« no previous file with comments | « cc/resources/resource.h ('k') | cc/resources/resource_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698