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

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

Issue 1179653004: Remove non-impl-side painting as an option for blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removenoimplblink: . Created 5 years, 6 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 GetSwitchValueAsInt(*cmd, switches::kMaxUntiledLayerHeight, 1, 270 GetSwitchValueAsInt(*cmd, switches::kMaxUntiledLayerHeight, 1,
271 std::numeric_limits<int>::max(), 271 std::numeric_limits<int>::max(),
272 &max_untiled_layer_height); 272 &max_untiled_layer_height);
273 } 273 }
274 274
275 settings.max_untiled_layer_size = gfx::Size(max_untiled_layer_width, 275 settings.max_untiled_layer_size = gfx::Size(max_untiled_layer_width,
276 max_untiled_layer_height); 276 max_untiled_layer_height);
277 277
278 settings.gpu_rasterization_msaa_sample_count = 278 settings.gpu_rasterization_msaa_sample_count =
279 compositor_deps_->GetGpuRasterizationMSAASampleCount(); 279 compositor_deps_->GetGpuRasterizationMSAASampleCount();
280 settings.impl_side_painting = compositor_deps_->IsImplSidePaintingEnabled(); 280 settings.impl_side_painting = true;
281 settings.gpu_rasterization_forced = 281 settings.gpu_rasterization_forced =
282 compositor_deps_->IsGpuRasterizationForced(); 282 compositor_deps_->IsGpuRasterizationForced();
283 settings.gpu_rasterization_enabled = 283 settings.gpu_rasterization_enabled =
284 compositor_deps_->IsGpuRasterizationEnabled(); 284 compositor_deps_->IsGpuRasterizationEnabled();
285 285
286 settings.can_use_lcd_text = compositor_deps_->IsLcdTextEnabled(); 286 settings.can_use_lcd_text = compositor_deps_->IsLcdTextEnabled();
287 settings.use_distance_field_text = 287 settings.use_distance_field_text =
288 compositor_deps_->IsDistanceFieldTextEnabled(); 288 compositor_deps_->IsDistanceFieldTextEnabled();
289 settings.use_zero_copy = compositor_deps_->IsZeroCopyEnabled(); 289 settings.use_zero_copy = compositor_deps_->IsZeroCopyEnabled();
290 settings.use_one_copy = compositor_deps_->IsOneCopyEnabled(); 290 settings.use_one_copy = compositor_deps_->IsOneCopyEnabled();
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
1001 return; 1001 return;
1002 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); 1002 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
1003 } 1003 }
1004 1004
1005 void RenderWidgetCompositor::SetSurfaceIdNamespace( 1005 void RenderWidgetCompositor::SetSurfaceIdNamespace(
1006 uint32_t surface_id_namespace) { 1006 uint32_t surface_id_namespace) {
1007 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); 1007 layer_tree_host_->set_surface_id_namespace(surface_id_namespace);
1008 } 1008 }
1009 1009
1010 } // namespace content 1010 } // 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