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

Unified Diff: cc/resources/resource_pool.h

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.cc ('k') | cc/resources/resource_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_pool.h
diff --git a/cc/resources/resource_pool.h b/cc/resources/resource_pool.h
index a73207a3c9f4bcb40e2180a9a1cbf42dd26674df..651f1d4ee9f06b5cd32586987bbf6452bbbfd340 100644
--- a/cc/resources/resource_pool.h
+++ b/cc/resources/resource_pool.h
@@ -20,7 +20,7 @@ class CC_EXPORT ResourcePool {
class CC_EXPORT Resource : public cc::Resource {
public:
Resource(ResourceProvider* resource_provider,
- const gfx::Size& size,
+ gfx::Size size,
GLenum format);
~Resource();
@@ -38,8 +38,8 @@ class CC_EXPORT ResourcePool {
ResourceProvider* resource_provider() { return resource_provider_; }
- scoped_ptr<ResourcePool::Resource> AcquireResource(
- const gfx::Size&, GLenum format);
+ scoped_ptr<ResourcePool::Resource> AcquireResource(gfx::Size size,
+ GLenum format);
void ReleaseResource(scoped_ptr<ResourcePool::Resource>);
void SetMaxMemoryUsageBytes(
« no previous file with comments | « cc/resources/resource.cc ('k') | cc/resources/resource_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698