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

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: mcasas@comments 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..895a4e2791a245df4fb221785195146625109b40 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);
+ const ClientBuffer& client_buffer = gpu_memory_buffer_->AsClientBuffer();
reveman 2015/03/02 20:09:55 why a const ref? is this temporary variable needed
emircan 2015/03/03 02:02:18 The temporaray is an rvalue and throws the error b
reveman 2015/03/03 05:30:13 Ok, how about this: ClientBuffer buffers[] = {
emircan 2015/03/04 03:03:15 Done.
+ 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') | content/browser/compositor/buffer_queue.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698