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

Unified Diff: cc/resources/scoped_resource.cc

Issue 21159007: cc: Adding support for RGBA_4444 tile textures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed a signed vs. unsigned comparison in video_resource_updater.cc Created 7 years, 3 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/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.cc
diff --git a/cc/resources/scoped_resource.cc b/cc/resources/scoped_resource.cc
index 525fb735db5a57a1a49dbcc1d7d082fd3a049dfe..5fcaaca7acc96f8340501eece6124db82277a79b 100644
--- a/cc/resources/scoped_resource.cc
+++ b/cc/resources/scoped_resource.cc
@@ -16,14 +16,14 @@ ScopedResource::~ScopedResource() {
}
bool ScopedResource::Allocate(gfx::Size size,
- GLenum format,
- ResourceProvider::TextureUsageHint hint) {
+ ResourceProvider::TextureUsageHint hint,
+ ResourceFormat format) {
DCHECK(!id());
DCHECK(!size.IsEmpty());
set_dimensions(size, format);
set_id(resource_provider_->CreateResource(
- size, format, GL_CLAMP_TO_EDGE, hint));
+ size, GL_CLAMP_TO_EDGE, hint, format));
#ifndef NDEBUG
allocate_thread_id_ = base::PlatformThread::CurrentId();
« no previous file with comments | « cc/resources/scoped_resource.h ('k') | cc/resources/scoped_resource_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698