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

Side by Side Diff: content/renderer/gpu/render_widget_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: 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/gpu/render_widget_compositor.h" 5 #include "content/renderer/gpu/render_widget_compositor.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 settings.gpu_rasterization_forced = 278 settings.gpu_rasterization_forced =
279 compositor_deps_->IsGpuRasterizationForced(); 279 compositor_deps_->IsGpuRasterizationForced();
280 settings.gpu_rasterization_enabled = 280 settings.gpu_rasterization_enabled =
281 compositor_deps_->IsGpuRasterizationEnabled(); 281 compositor_deps_->IsGpuRasterizationEnabled();
282 282
283 settings.can_use_lcd_text = compositor_deps_->IsLcdTextEnabled(); 283 settings.can_use_lcd_text = compositor_deps_->IsLcdTextEnabled();
284 settings.use_distance_field_text = 284 settings.use_distance_field_text =
285 compositor_deps_->IsDistanceFieldTextEnabled(); 285 compositor_deps_->IsDistanceFieldTextEnabled();
286 settings.use_zero_copy = compositor_deps_->IsZeroCopyEnabled(); 286 settings.use_zero_copy = compositor_deps_->IsZeroCopyEnabled();
287 settings.use_one_copy = compositor_deps_->IsOneCopyEnabled(); 287 settings.use_one_copy = compositor_deps_->IsOneCopyEnabled();
288 settings.have_persistent_gpu_memory_buffers =
289 compositor_deps_->HavePersistentGpuMemoryBuffers();
288 settings.enable_elastic_overscroll = 290 settings.enable_elastic_overscroll =
289 compositor_deps_->IsElasticOverscrollEnabled(); 291 compositor_deps_->IsElasticOverscrollEnabled();
290 settings.use_image_texture_target = compositor_deps_->GetImageTextureTarget(); 292 settings.use_image_texture_target = compositor_deps_->GetImageTextureTarget();
291 settings.gather_pixel_refs = compositor_deps_->IsGatherPixelRefsEnabled(); 293 settings.gather_pixel_refs = compositor_deps_->IsGatherPixelRefsEnabled();
292 294
293 if (cmd->HasSwitch(cc::switches::kTopControlsShowThreshold)) { 295 if (cmd->HasSwitch(cc::switches::kTopControlsShowThreshold)) {
294 std::string top_threshold_str = 296 std::string top_threshold_str =
295 cmd->GetSwitchValueASCII(cc::switches::kTopControlsShowThreshold); 297 cmd->GetSwitchValueASCII(cc::switches::kTopControlsShowThreshold);
296 double show_threshold; 298 double show_threshold;
297 if (base::StringToDouble(top_threshold_str, &show_threshold) && 299 if (base::StringToDouble(top_threshold_str, &show_threshold) &&
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 return; 970 return;
969 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); 971 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
970 } 972 }
971 973
972 void RenderWidgetCompositor::SetSurfaceIdNamespace( 974 void RenderWidgetCompositor::SetSurfaceIdNamespace(
973 uint32_t surface_id_namespace) { 975 uint32_t surface_id_namespace) {
974 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); 976 layer_tree_host_->set_surface_id_namespace(surface_id_namespace);
975 } 977 }
976 978
977 } // namespace content 979 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698