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

Unified Diff: ui/compositor/compositor.cc

Issue 1139903005: Add PERSISTENT_MAP usage for GpuMemoryBuffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: persistentmap: fixmandolinebetter Created 5 years, 7 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
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index f80b75fe298d605fc960165d0c257b4659733907..d2f5ec390ff2b3a06450adaf4b057559e989b1ba 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -131,7 +131,10 @@ Compositor::Compositor(gfx::AcceleratedWidget widget,
settings.use_cached_picture_in_display_list = false;
settings.use_zero_copy = IsUIZeroCopyEnabled();
settings.use_one_copy = IsUIOneCopyEnabled();
- settings.use_image_texture_target = context_factory_->GetImageTextureTarget();
+ settings.map_image_texture_target =
+ context_factory_->GetMapImageTextureTarget();
+ settings.persistent_map_image_texture_target =
+ context_factory_->GetPersistentMapImageTextureTarget();
// Note: gathering of pixel refs is only needed when using multiple
// raster threads.
settings.gather_pixel_refs = false;

Powered by Google App Engine
This is Rietveld 408576698