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

Unified Diff: ui/compositor/compositor.cc

Issue 1139063002: cc: Partial tile update for one-copy raster. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: monocle: slightlylessstruct 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 5785bca1aa8a4197d5561ed880d7d7861f041bd9..2b4bae181b30a104d05b4d3cd663ad09b8fc709e 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -142,12 +142,10 @@ Compositor::Compositor(gfx::AcceleratedWidget widget,
// crbug.com/490362
gfx::GpuMemoryBuffer::Format format = gfx::GpuMemoryBuffer::BGRA_8888;
- gfx::GpuMemoryBuffer::Usage usage = gfx::GpuMemoryBuffer::MAP;
- // TODO(danakj): Do this for partial raster:
// Use PERSISTENT_MAP memory buffers to support partial tile raster for
// software raster into GpuMemoryBuffers.
- // gfx::GpuMemoryBuffer::Usage usage = gfx::GpuMemoryBuffer::PERSISTENT_MAP;
- // settings.use_persistent_map_gpu_memory_buffer_usage = true;
+ gfx::GpuMemoryBuffer::Usage usage = gfx::GpuMemoryBuffer::PERSISTENT_MAP;
+ settings.use_persistent_map_gpu_memory_buffer_usage = true;
settings.use_image_texture_target =
context_factory_->GetImageTextureTarget(format, usage);
« cc/tiles/picture_layer_tiling.cc ('K') | « content/browser/renderer_host/render_process_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698