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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 1186393004: gpu: Remove async texture uploads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 3 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
« no previous file with comments | « content/renderer/gpu/compositor_dependencies.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 compositor_deps_->GetGpuRasterizationMSAASampleCount(); 295 compositor_deps_->GetGpuRasterizationMSAASampleCount();
296 settings.gpu_rasterization_forced = 296 settings.gpu_rasterization_forced =
297 compositor_deps_->IsGpuRasterizationForced(); 297 compositor_deps_->IsGpuRasterizationForced();
298 settings.gpu_rasterization_enabled = 298 settings.gpu_rasterization_enabled =
299 compositor_deps_->IsGpuRasterizationEnabled(); 299 compositor_deps_->IsGpuRasterizationEnabled();
300 300
301 settings.can_use_lcd_text = compositor_deps_->IsLcdTextEnabled(); 301 settings.can_use_lcd_text = compositor_deps_->IsLcdTextEnabled();
302 settings.use_distance_field_text = 302 settings.use_distance_field_text =
303 compositor_deps_->IsDistanceFieldTextEnabled(); 303 compositor_deps_->IsDistanceFieldTextEnabled();
304 settings.use_zero_copy = compositor_deps_->IsZeroCopyEnabled(); 304 settings.use_zero_copy = compositor_deps_->IsZeroCopyEnabled();
305 settings.use_one_copy = compositor_deps_->IsOneCopyEnabled();
306 settings.use_persistent_map_for_gpu_memory_buffers = 305 settings.use_persistent_map_for_gpu_memory_buffers =
307 compositor_deps_->IsPersistentGpuMemoryBufferEnabled(); 306 compositor_deps_->IsPersistentGpuMemoryBufferEnabled();
308 settings.enable_elastic_overscroll = 307 settings.enable_elastic_overscroll =
309 compositor_deps_->IsElasticOverscrollEnabled(); 308 compositor_deps_->IsElasticOverscrollEnabled();
310 settings.use_image_texture_targets = 309 settings.use_image_texture_targets =
311 compositor_deps_->GetImageTextureTargets(); 310 compositor_deps_->GetImageTextureTargets();
312 settings.gather_pixel_refs = compositor_deps_->IsGatherPixelRefsEnabled(); 311 settings.gather_pixel_refs = compositor_deps_->IsGatherPixelRefsEnabled();
313 312
314 if (cmd->HasSwitch(cc::switches::kTopControlsShowThreshold)) { 313 if (cmd->HasSwitch(cc::switches::kTopControlsShowThreshold)) {
315 std::string top_threshold_str = 314 std::string top_threshold_str =
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
1043 return; 1042 return;
1044 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); 1043 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
1045 } 1044 }
1046 1045
1047 void RenderWidgetCompositor::SetSurfaceIdNamespace( 1046 void RenderWidgetCompositor::SetSurfaceIdNamespace(
1048 uint32_t surface_id_namespace) { 1047 uint32_t surface_id_namespace) {
1049 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); 1048 layer_tree_host_->set_surface_id_namespace(surface_id_namespace);
1050 } 1049 }
1051 1050
1052 } // namespace content 1051 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/compositor_dependencies.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698