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

Unified Diff: cc/resources/scoped_resource.h

Issue 2697353003: cc: Make ScopedResource constructor public, use MakeUnique to construct (Closed)
Patch Set: construct: . Created 3 years, 10 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/raster/raster_buffer_provider_unittest.cc ('k') | cc/resources/scoped_resource_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/scoped_resource.h
diff --git a/cc/resources/scoped_resource.h b/cc/resources/scoped_resource.h
index 13f1e98f534ce3c06aae2d3981dcd6ec9b8290a6..989a02110536f31df1428dba5529d0b390971840 100644
--- a/cc/resources/scoped_resource.h
+++ b/cc/resources/scoped_resource.h
@@ -21,10 +21,7 @@ namespace cc {
class CC_EXPORT ScopedResource : public Resource {
public:
- static std::unique_ptr<ScopedResource> Create(
- ResourceProvider* resource_provider) {
- return base::WrapUnique(new ScopedResource(resource_provider));
- }
+ explicit ScopedResource(ResourceProvider* provider);
virtual ~ScopedResource();
void Allocate(const gfx::Size& size,
@@ -37,9 +34,6 @@ class CC_EXPORT ScopedResource : public Resource {
const gfx::ColorSpace& color_space);
void Free();
- protected:
- explicit ScopedResource(ResourceProvider* provider);
-
private:
ResourceProvider* resource_provider_;
« no previous file with comments | « cc/raster/raster_buffer_provider_unittest.cc ('k') | cc/resources/scoped_resource_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698