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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 766663005: cc: zero/one-copy based on shared memory on IOS uses GL_TEXTURE_2D, not GL_TEXTURE_RECTANGLE_ARB. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
« cc/trees/layer_tree_host_impl.cc ('K') | « cc/trees/layer_tree_host_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 0c75bb8ac0d7b0650f94d7fd9b8171414cbf6515..e5ed627db5222b2e1fa2f68ad9f44b70e064672c 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -1037,8 +1037,9 @@ static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) {
// The GPU service will always use the preferred type.
gfx::GpuMemoryBufferType type = supported_types[0];
- // Surface texture backed GPU memory buffers require TEXTURE_EXTERNAL_OES.
- if (type == gfx::SURFACE_TEXTURE_BUFFER)
+ // Surface texture backed GPU memory buffers require TEXTURE_EXTERNAL_OES
+ // or GL_TEXTURE_RECTANGLE_ARB.
reveman 2014/12/01 17:03:14 This comment is now incorrect and telling the rend
+ if (type == gfx::SURFACE_TEXTURE_BUFFER || type == gfx::IO_SURFACE_BUFFER)
command_line->AppendSwitch(switches::kUseImageExternal);
}
« cc/trees/layer_tree_host_impl.cc ('K') | « cc/trees/layer_tree_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698