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

Unified Diff: cc/resources/scoped_resource.cc

Issue 1415583004: cc: Remove references to managed resources (and cleanup) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: protected -> private Created 5 years, 2 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/scoped_resource.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/scoped_resource.cc
diff --git a/cc/resources/scoped_resource.cc b/cc/resources/scoped_resource.cc
index 2e423270b8373d51898f6b9d3a79b6b5ecf26b27..927b771f658a7df94e660f194719a2ba242de0b4 100644
--- a/cc/resources/scoped_resource.cc
+++ b/cc/resources/scoped_resource.cc
@@ -29,14 +29,14 @@ void ScopedResource::Allocate(const gfx::Size& size,
#endif
}
-void ScopedResource::AllocateManaged(const gfx::Size& size,
- GLenum target,
- ResourceFormat format) {
+void ScopedResource::AllocateWithTextureTarget(const gfx::Size& size,
+ GLenum target,
+ ResourceFormat format) {
DCHECK(!id());
DCHECK(!size.IsEmpty());
set_dimensions(size, format);
- set_id(resource_provider_->CreateManagedResource(
+ set_id(resource_provider_->CreateResourceWithTextureTarget(
size, target, ResourceProvider::TEXTURE_HINT_IMMUTABLE, format));
#if DCHECK_IS_ON()
« no previous file with comments | « cc/resources/scoped_resource.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698