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

Unified Diff: cc/resources/scoped_resource.cc

Issue 2240873003: Fix a bug that prevents all reuse of ResourcePool resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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.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 b29b7c43c31de7b5fe1c1409fe997f2e269d1038..d65150d6ef4e4ac5802f9cc4df05d4d2c4b41e4f 100644
--- a/cc/resources/scoped_resource.cc
+++ b/cc/resources/scoped_resource.cc
@@ -24,6 +24,7 @@ void ScopedResource::Allocate(const gfx::Size& size,
set_dimensions(size, format);
set_id(resource_provider_->CreateResource(size, hint, format, color_space));
+ set_color_space(color_space);
#if DCHECK_IS_ON()
allocate_thread_id_ = base::PlatformThread::CurrentId();
@@ -42,6 +43,7 @@ void ScopedResource::AllocateWithGpuMemoryBuffer(
set_id(resource_provider_->CreateGpuMemoryBufferResource(
size, ResourceProvider::TEXTURE_HINT_IMMUTABLE, format, usage,
color_space));
+ set_color_space(color_space);
#if DCHECK_IS_ON()
allocate_thread_id_ = base::PlatformThread::CurrentId();
« no previous file with comments | « cc/resources/resource.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698