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

Unified Diff: components/html_viewer/web_layer_tree_view_impl.cc

Issue 1251693003: cc: Fix the format of GpuMemoryBuffer for SurfaceTexture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 4 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 | « cc/trees/layer_tree_settings.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/web_layer_tree_view_impl.cc
diff --git a/components/html_viewer/web_layer_tree_view_impl.cc b/components/html_viewer/web_layer_tree_view_impl.cc
index cbc4664d7f5c518f7ad68e97d0de42cdeb8c85f7..9d54f7e8a69097ee655637897219c9acfa22195b 100644
--- a/components/html_viewer/web_layer_tree_view_impl.cc
+++ b/components/html_viewer/web_layer_tree_view_impl.cc
@@ -15,6 +15,7 @@
#include "mojo/cc/output_surface_mojo.h"
#include "mojo/converters/surfaces/surfaces_type_converters.h"
#include "third_party/WebKit/public/web/WebWidget.h"
+#include "ui/gfx/buffer_types.h"
namespace html_viewer {
@@ -36,7 +37,8 @@ WebLayerTreeViewImpl::WebLayerTreeViewImpl(
// blink::RuntimeEnabledFeature::slimmingPaintEnabled()
settings.use_display_lists = true;
- settings.use_image_texture_target = GL_TEXTURE_2D;
+ settings.use_image_texture_targets = std::vector<unsigned>(
+ static_cast<size_t>(gfx::BufferFormat::LAST) + 1, GL_TEXTURE_2D);
settings.use_one_copy = true;
// TODO(jam): use multiple compositor raster threads and set gather_pixel_refs
// accordingly (see content).
« no previous file with comments | « cc/trees/layer_tree_settings.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698