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

Unified Diff: content/browser/gpu/browser_gpu_channel_host_factory.cc

Issue 1097503003: ozone: OZONE_NATIVE_BUFFER requires GL_TEXTURE_EXTERNAL_OES. (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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/browser_gpu_channel_host_factory.cc
diff --git a/content/browser/gpu/browser_gpu_channel_host_factory.cc b/content/browser/gpu/browser_gpu_channel_host_factory.cc
index 16ce7584d032bb7c7c65f9cbf2aff206cc7aa205..ca2aa3790ddc30518b89b8c8d3fdb8b76f6cbf17 100644
--- a/content/browser/gpu/browser_gpu_channel_host_factory.cc
+++ b/content/browser/gpu/browser_gpu_channel_host_factory.cc
@@ -262,8 +262,8 @@ uint32 BrowserGpuChannelHostFactory::GetImageTextureTarget() {
switch (type) {
case gfx::SURFACE_TEXTURE_BUFFER:
- // Surface texture backed GPU memory buffers require
- // TEXTURE_EXTERNAL_OES.
+ case gfx::OZONE_NATIVE_BUFFER:
+ // EGLImage backed GPU memory buffers require TEXTURE_EXTERNAL_OES.
reveman 2015/04/16 19:39:20 nit: These buffers are not technically backed by E
return GL_TEXTURE_EXTERNAL_OES;
case gfx::IO_SURFACE_BUFFER:
// IOSurface backed images require GL_TEXTURE_RECTANGLE_ARB.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698