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

Unified Diff: cc/resources/resource_provider.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/resource_provider.h ('k') | cc/resources/resource_provider_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_provider.cc
diff --git a/cc/resources/resource_provider.cc b/cc/resources/resource_provider.cc
index 8f8490b839b4a1bc5b8843629055ef9247620222..4c2a1c31a07a1619ff1dd259b35605c3cefd70b2 100644
--- a/cc/resources/resource_provider.cc
+++ b/cc/resources/resource_provider.cc
@@ -399,18 +399,15 @@ ResourceId ResourceProvider::CreateResource(const gfx::Size& size,
return 0;
}
-ResourceId ResourceProvider::CreateResourceWithTextureTarget(
+ResourceId ResourceProvider::CreateResourceWithImageTextureTarget(
const gfx::Size& size,
- GLenum target,
TextureHint hint,
ResourceFormat format) {
DCHECK(!size.IsEmpty());
switch (default_resource_type_) {
- case RESOURCE_TYPE_GL_TEXTURE:
- return CreateGLTexture(size,
- target,
- hint,
- format);
+ case RESOURCE_TYPE_GL_TEXTURE: {
+ return CreateGLTexture(size, GetImageTextureTarget(format), hint, format);
+ }
case RESOURCE_TYPE_BITMAP:
DCHECK_EQ(RGBA_8888, format);
return CreateBitmap(size);
« no previous file with comments | « cc/resources/resource_provider.h ('k') | cc/resources/resource_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698