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

Unified Diff: cc/resources/scoped_resource.cc

Issue 1422103003: cc: Remove the ability to specify a GL texture target (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback 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') | cc/test/fake_picture_layer_tiling_client.cc » ('j') | 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 927b771f658a7df94e660f194719a2ba242de0b4..3e975e15ba0f988d02536bbb71ccf255dd2db847 100644
--- a/cc/resources/scoped_resource.cc
+++ b/cc/resources/scoped_resource.cc
@@ -29,15 +29,14 @@ void ScopedResource::Allocate(const gfx::Size& size,
#endif
}
-void ScopedResource::AllocateWithTextureTarget(const gfx::Size& size,
- GLenum target,
- ResourceFormat format) {
+void ScopedResource::AllocateWithImageTextureTarget(const gfx::Size& size,
+ ResourceFormat format) {
DCHECK(!id());
DCHECK(!size.IsEmpty());
set_dimensions(size, format);
- set_id(resource_provider_->CreateResourceWithTextureTarget(
- size, target, ResourceProvider::TEXTURE_HINT_IMMUTABLE, format));
+ set_id(resource_provider_->CreateResourceWithImageTextureTarget(
+ size, ResourceProvider::TEXTURE_HINT_IMMUTABLE, format));
#if DCHECK_IS_ON()
allocate_thread_id_ = base::PlatformThread::CurrentId();
« no previous file with comments | « cc/resources/scoped_resource.h ('k') | cc/test/fake_picture_layer_tiling_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698