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

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

Issue 2120713002: Fix use_image_texture_target inconsistencies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 5 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 <stddef.h> 7 #include <stddef.h>
8 #include <limits> 8 #include <limits>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 332
333 settings.can_use_lcd_text = compositor_deps->IsLcdTextEnabled(); 333 settings.can_use_lcd_text = compositor_deps->IsLcdTextEnabled();
334 settings.use_distance_field_text = 334 settings.use_distance_field_text =
335 compositor_deps->IsDistanceFieldTextEnabled(); 335 compositor_deps->IsDistanceFieldTextEnabled();
336 settings.use_zero_copy = compositor_deps->IsZeroCopyEnabled(); 336 settings.use_zero_copy = compositor_deps->IsZeroCopyEnabled();
337 settings.use_partial_raster = compositor_deps->IsPartialRasterEnabled(); 337 settings.use_partial_raster = compositor_deps->IsPartialRasterEnabled();
338 settings.enable_elastic_overscroll = 338 settings.enable_elastic_overscroll =
339 compositor_deps->IsElasticOverscrollEnabled(); 339 compositor_deps->IsElasticOverscrollEnabled();
340 settings.renderer_settings.use_gpu_memory_buffer_resources = 340 settings.renderer_settings.use_gpu_memory_buffer_resources =
341 compositor_deps->IsGpuMemoryBufferCompositorResourcesEnabled(); 341 compositor_deps->IsGpuMemoryBufferCompositorResourcesEnabled();
342 settings.use_image_texture_targets = 342 settings.renderer_settings.use_image_texture_targets =
343 compositor_deps->GetImageTextureTargets(); 343 compositor_deps->GetImageTextureTargets();
344 settings.image_decode_tasks_enabled = 344 settings.image_decode_tasks_enabled =
345 compositor_deps->AreImageDecodeTasksEnabled(); 345 compositor_deps->AreImageDecodeTasksEnabled();
346 346
347 if (cmd.HasSwitch(cc::switches::kTopControlsShowThreshold)) { 347 if (cmd.HasSwitch(cc::switches::kTopControlsShowThreshold)) {
348 std::string top_threshold_str = 348 std::string top_threshold_str =
349 cmd.GetSwitchValueASCII(cc::switches::kTopControlsShowThreshold); 349 cmd.GetSwitchValueASCII(cc::switches::kTopControlsShowThreshold);
350 double show_threshold; 350 double show_threshold;
351 if (base::StringToDouble(top_threshold_str, &show_threshold) && 351 if (base::StringToDouble(top_threshold_str, &show_threshold) &&
352 show_threshold >= 0.f && show_threshold <= 1.f) 352 show_threshold >= 0.f && show_threshold <= 1.f)
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 1144
1145 remote_proto_channel_receiver_->OnProtoReceived(std::move(deserialized)); 1145 remote_proto_channel_receiver_->OnProtoReceived(std::move(deserialized));
1146 } 1146 }
1147 1147
1148 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( 1148 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor(
1149 float device_scale) { 1149 float device_scale) {
1150 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); 1150 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale);
1151 } 1151 }
1152 1152
1153 } // namespace content 1153 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698