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

Unified Diff: cc/scoped_resource.cc

Issue 11622008: cc: Defer texture allocation (to allow async allocations). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Track uninitialized textures. Fix tests. Created 8 years 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
« cc/resource_provider.cc ('K') | « cc/resource_provider_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scoped_resource.cc
diff --git a/cc/scoped_resource.cc b/cc/scoped_resource.cc
index c5894aaac2fff829c071b0b85606ae8107425c2f..d7ef4640ff57999246c50f7557d09ec3ede49fe9 100644
--- a/cc/scoped_resource.cc
+++ b/cc/scoped_resource.cc
@@ -21,7 +21,7 @@ bool ScopedResource::Allocate(const gfx::Size& size, GLenum format,
DCHECK(!size.IsEmpty());
set_dimensions(size, format);
- set_id(resource_provider_->createResource(size, format, hint));
+ set_id(resource_provider_->createAllocatedResource(size, format, hint));
piman 2012/12/18 22:41:38 "for tests only" fails here. Why is this needed?
#ifndef NDEBUG
allocate_thread_id_ = base::PlatformThread::CurrentId();
« cc/resource_provider.cc ('K') | « cc/resource_provider_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698