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

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

Issue 2522693002: Color correct ImageBitmap(HTMLImageElement*) constructor (Closed)
Patch Set: Rebaseline 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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 if (delegate_ && delegate_->IsOverridingUserAgent()) 498 if (delegate_ && delegate_->IsOverridingUserAgent())
499 prefs.viewport_meta_enabled = false; 499 prefs.viewport_meta_enabled = false;
500 500
501 prefs.main_frame_resizes_are_orientation_changes = 501 prefs.main_frame_resizes_are_orientation_changes =
502 command_line.HasSwitch(switches::kMainFrameResizesAreOrientationChanges); 502 command_line.HasSwitch(switches::kMainFrameResizesAreOrientationChanges);
503 503
504 prefs.color_correct_rendering_enabled = 504 prefs.color_correct_rendering_enabled =
505 command_line.HasSwitch(cc::switches::kEnableColorCorrectRendering) || 505 command_line.HasSwitch(cc::switches::kEnableColorCorrectRendering) ||
506 command_line.HasSwitch(cc::switches::kEnableTrueColorRendering); 506 command_line.HasSwitch(cc::switches::kEnableTrueColorRendering);
507 507
508 prefs.color_correct_rendering_default_mode_enabled =
509 command_line.HasSwitch(
510 switches::kEnableColorCorrectRenderingDefaultMode);
511
508 prefs.true_color_rendering_enabled = 512 prefs.true_color_rendering_enabled =
509 command_line.HasSwitch(cc::switches::kEnableTrueColorRendering); 513 command_line.HasSwitch(cc::switches::kEnableTrueColorRendering);
510 514
511 prefs.spatial_navigation_enabled = command_line.HasSwitch( 515 prefs.spatial_navigation_enabled = command_line.HasSwitch(
512 switches::kEnableSpatialNavigation); 516 switches::kEnableSpatialNavigation);
513 517
514 prefs.disable_reading_from_canvas = command_line.HasSwitch( 518 prefs.disable_reading_from_canvas = command_line.HasSwitch(
515 switches::kDisableReadingFromCanvas); 519 switches::kDisableReadingFromCanvas);
516 520
517 prefs.strict_mixed_content_checking = command_line.HasSwitch( 521 prefs.strict_mixed_content_checking = command_line.HasSwitch(
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
1088 } else { 1092 } else {
1089 render_view_ready_on_process_launch_ = true; 1093 render_view_ready_on_process_launch_ = true;
1090 } 1094 }
1091 } 1095 }
1092 1096
1093 void RenderViewHostImpl::RenderViewReady() { 1097 void RenderViewHostImpl::RenderViewReady() {
1094 delegate_->RenderViewReady(this); 1098 delegate_->RenderViewReady(this);
1095 } 1099 }
1096 1100
1097 } // namespace content 1101 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698