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

Unified Diff: cc/resources/resource_provider.cc

Issue 1068663002: gpu: More specific internalformat requirements for CreateImageCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | content/browser/renderer_host/media/video_capture_texture_wrapper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_provider.cc
diff --git a/cc/resources/resource_provider.cc b/cc/resources/resource_provider.cc
index f31cfd4da34e776878b87574f37a281741467f94..9e95d1ce2b35fe586a174d39dfbffab7026a654a 100644
--- a/cc/resources/resource_provider.cc
+++ b/cc/resources/resource_provider.cc
@@ -1084,11 +1084,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);
+ resource_->image_id = gl->CreateImageCHROMIUM(
+ gpu_memory_buffer_->AsClientBuffer(), size_.width(), size_.height(),
+ GLInternalFormat(resource_->format));
}
std::swap(resource_->gpu_memory_buffer, gpu_memory_buffer_);
« no previous file with comments | « no previous file | content/browser/renderer_host/media/video_capture_texture_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698