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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 2530503003: Add --enable-true-color-rendering flag (Closed)
Patch Set: Rebase Created 4 years 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 490
491 prefs.viewport_enabled = command_line.HasSwitch(switches::kEnableViewport); 491 prefs.viewport_enabled = command_line.HasSwitch(switches::kEnableViewport);
492 492
493 if (delegate_ && delegate_->IsOverridingUserAgent()) 493 if (delegate_ && delegate_->IsOverridingUserAgent())
494 prefs.viewport_meta_enabled = false; 494 prefs.viewport_meta_enabled = false;
495 495
496 prefs.main_frame_resizes_are_orientation_changes = 496 prefs.main_frame_resizes_are_orientation_changes =
497 command_line.HasSwitch(switches::kMainFrameResizesAreOrientationChanges); 497 command_line.HasSwitch(switches::kMainFrameResizesAreOrientationChanges);
498 498
499 prefs.color_correct_rendering_enabled = 499 prefs.color_correct_rendering_enabled =
500 command_line.HasSwitch(cc::switches::kEnableColorCorrectRendering); 500 command_line.HasSwitch(cc::switches::kEnableColorCorrectRendering) ||
501 command_line.HasSwitch(cc::switches::kEnableTrueColorRendering);
502
503 prefs.true_color_rendering_enabled =
504 command_line.HasSwitch(cc::switches::kEnableTrueColorRendering);
501 505
502 prefs.spatial_navigation_enabled = command_line.HasSwitch( 506 prefs.spatial_navigation_enabled = command_line.HasSwitch(
503 switches::kEnableSpatialNavigation); 507 switches::kEnableSpatialNavigation);
504 508
505 prefs.disable_reading_from_canvas = command_line.HasSwitch( 509 prefs.disable_reading_from_canvas = command_line.HasSwitch(
506 switches::kDisableReadingFromCanvas); 510 switches::kDisableReadingFromCanvas);
507 511
508 prefs.strict_mixed_content_checking = command_line.HasSwitch( 512 prefs.strict_mixed_content_checking = command_line.HasSwitch(
509 switches::kEnableStrictMixedContentChecking); 513 switches::kEnableStrictMixedContentChecking);
510 514
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 } else { 1083 } else {
1080 render_view_ready_on_process_launch_ = true; 1084 render_view_ready_on_process_launch_ = true;
1081 } 1085 }
1082 } 1086 }
1083 1087
1084 void RenderViewHostImpl::RenderViewReady() { 1088 void RenderViewHostImpl::RenderViewReady() {
1085 delegate_->RenderViewReady(this); 1089 delegate_->RenderViewReady(this);
1086 } 1090 }
1087 1091
1088 } // namespace content 1092 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698