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

Unified Diff: content/common/gpu/client/gpu_memory_buffer_impl_android.cc

Issue 255713008: Change glimage to accept a type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no ozone Created 6 years, 8 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: content/common/gpu/client/gpu_memory_buffer_impl_android.cc
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_android.cc b/content/common/gpu/client/gpu_memory_buffer_impl_android.cc
index a7f694f4a8f0b8ed4c756a2dfd8b256668356c7c..0044d715e12c6ba6f23e19b2c978a072913ca017 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl_android.cc
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_android.cc
@@ -12,7 +12,11 @@ namespace content {
scoped_ptr<GpuMemoryBufferImpl> GpuMemoryBufferImpl::Create(
gfx::GpuMemoryBufferHandle handle,
gfx::Size size,
- unsigned internalformat) {
+ unsigned internalformat,
+ gfx::GpuMemoryBuffer::Usage usage) {
+ if (usage == gfx::GpuMemoryBuffer::SCANOUT)
reveman 2014/04/30 11:31:28 I don't think this should be here. If the browser
+ return scoped_ptr<GpuMemoryBufferImpl>();
+
switch (handle.type) {
case gfx::SHARED_MEMORY_BUFFER: {
scoped_ptr<GpuMemoryBufferImplShm> buffer(

Powered by Google App Engine
This is Rietveld 408576698