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

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: improve comment 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 6e0843774728c871e2a35a8bfbf2b1fc4110325d..9edb9677c56abc2b4801d5aa62193d362236b95c 100644
--- a/content/browser/gpu/browser_gpu_channel_host_factory.cc
+++ b/content/browser/gpu/browser_gpu_channel_host_factory.cc
@@ -267,7 +267,8 @@ uint32 BrowserGpuChannelHostFactory::GetImageTextureTarget() {
switch (type) {
case gfx::SURFACE_TEXTURE_BUFFER:
- // Surface texture backed GPU memory buffers require
+ case gfx::OZONE_NATIVE_BUFFER:
+ // GPU memory buffers that are shared with the GL using EGLImages require
// TEXTURE_EXTERNAL_OES.
return GL_TEXTURE_EXTERNAL_OES;
case gfx::IO_SURFACE_BUFFER:
« 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