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

Unified Diff: content/browser/renderer_host/render_process_host_impl.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: tilemanagerconsistency 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: 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 6bb177c39d9ba6386b1494252bddef5f0ce8ab11..5e9c59fa4c03ef3fdf243b3f4cbf476c940daeb5 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -1141,9 +1141,11 @@ static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) {
// crbug.com/490362
gfx::GpuMemoryBuffer::Format format = gfx::GpuMemoryBuffer::BGRA_8888;
- // TODO(danakj): When one-copy uploads support partial update, change this
- // usage to PERSISTENT_MAP for one-copy.
gfx::GpuMemoryBuffer::Usage usage = gfx::GpuMemoryBuffer::MAP;
+ if (HavePersistentGpuMemoryBuffers()) {
+ usage = gfx::GpuMemoryBuffer::PERSISTENT_MAP;
+ command_line->AppendSwitch(switches::kUsePersistentGpuMemoryBuffers);
+ }
command_line->AppendSwitchASCII(
switches::kUseImageTextureTarget,

Powered by Google App Engine
This is Rietveld 408576698