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

Unified Diff: cc/resources/resource_provider.cc

Issue 962723002: Change CHROMIUM_image declarations to support multi planar input. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changing the function calls Created 5 years, 10 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
Index: cc/resources/resource_provider.cc
diff --git a/cc/resources/resource_provider.cc b/cc/resources/resource_provider.cc
index 115238f73cb5e74f32e666db16abc4ff276bf244..5ae38d8b827bcff1895772aaf73753cd1ad307f2 100644
--- a/cc/resources/resource_provider.cc
+++ b/cc/resources/resource_provider.cc
@@ -1086,11 +1086,9 @@ ResourceProvider::ScopedWriteLockGpuMemoryBuffer::
DCHECK_EQ(gpu_memory_buffer_->GetHandle().type, gfx::SHARED_MEMORY_BUFFER);
#endif
- resource_->image_id =
- gl->CreateImageCHROMIUM(gpu_memory_buffer_->AsClientBuffer(),
- size_.width(),
- size_.height(),
- GL_RGBA);
+ ClientBuffer client_buffer = gpu_memory_buffer_->AsClientBuffer();
mcasas 2015/02/28 01:14:26 In this and similar temporary instantiations, can
emircan 2015/02/28 02:33:36 Changed it to a const ref to the temp object.
+ resource_->image_id = gl->CreateImageCHROMIUM(&client_buffer, size_.width(),
+ size_.height(), GL_RGBA);
}
std::swap(resource_->gpu_memory_buffer, gpu_memory_buffer_);
« no previous file with comments | « no previous file | cc/resources/resource_provider_unittest.cc » ('j') | gpu/GLES2/extensions/CHROMIUM/CHROMIUM_image.txt » ('J')

Powered by Google App Engine
This is Rietveld 408576698