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

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

Issue 2871893002: color: Ensure solid color IOSurface layers are sRGB (Closed)
Patch Set: Fix up deps Created 3 years, 7 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) 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 #include "third_party/skia/include/core/SkBitmap.h" 84 #include "third_party/skia/include/core/SkBitmap.h"
85 #include "ui/base/clipboard/clipboard.h" 85 #include "ui/base/clipboard/clipboard.h"
86 #include "ui/base/device_form_factor.h" 86 #include "ui/base/device_form_factor.h"
87 #include "ui/base/touch/touch_device.h" 87 #include "ui/base/touch/touch_device.h"
88 #include "ui/base/ui_base_switches.h" 88 #include "ui/base/ui_base_switches.h"
89 #include "ui/display/display_switches.h" 89 #include "ui/display/display_switches.h"
90 #include "ui/gfx/animation/animation.h" 90 #include "ui/gfx/animation/animation.h"
91 #include "ui/gfx/color_space.h" 91 #include "ui/gfx/color_space.h"
92 #include "ui/gfx/image/image_skia.h" 92 #include "ui/gfx/image/image_skia.h"
93 #include "ui/gfx/native_widget_types.h" 93 #include "ui/gfx/native_widget_types.h"
94 #include "ui/gfx/switches.h"
94 #include "ui/native_theme/native_theme_features.h" 95 #include "ui/native_theme/native_theme_features.h"
95 #include "url/url_constants.h" 96 #include "url/url_constants.h"
96 97
97 #if defined(OS_WIN) 98 #if defined(OS_WIN)
98 #include "ui/display/win/screen_win.h" 99 #include "ui/display/win/screen_win.h"
99 #include "ui/gfx/geometry/dip_util.h" 100 #include "ui/gfx/geometry/dip_util.h"
100 #include "ui/gfx/platform_font_win.h" 101 #include "ui/gfx/platform_font_win.h"
101 #endif 102 #endif
102 103
103 using base::TimeDelta; 104 using base::TimeDelta;
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 505
505 prefs.viewport_enabled = command_line.HasSwitch(switches::kEnableViewport); 506 prefs.viewport_enabled = command_line.HasSwitch(switches::kEnableViewport);
506 507
507 if (delegate_ && delegate_->IsOverridingUserAgent()) 508 if (delegate_ && delegate_->IsOverridingUserAgent())
508 prefs.viewport_meta_enabled = false; 509 prefs.viewport_meta_enabled = false;
509 510
510 prefs.main_frame_resizes_are_orientation_changes = 511 prefs.main_frame_resizes_are_orientation_changes =
511 command_line.HasSwitch(switches::kMainFrameResizesAreOrientationChanges); 512 command_line.HasSwitch(switches::kMainFrameResizesAreOrientationChanges);
512 513
513 prefs.color_correct_rendering_enabled = 514 prefs.color_correct_rendering_enabled =
514 command_line.HasSwitch(cc::switches::kEnableColorCorrectRendering); 515 command_line.HasSwitch(switches::kEnableColorCorrectRendering);
515 516
516 prefs.color_correct_rendering_default_mode_enabled = 517 prefs.color_correct_rendering_default_mode_enabled =
517 command_line.HasSwitch( 518 command_line.HasSwitch(
518 switches::kEnableColorCorrectRenderingDefaultMode); 519 switches::kEnableColorCorrectRenderingDefaultMode);
519 520
520 prefs.spatial_navigation_enabled = command_line.HasSwitch( 521 prefs.spatial_navigation_enabled = command_line.HasSwitch(
521 switches::kEnableSpatialNavigation); 522 switches::kEnableSpatialNavigation);
522 523
523 prefs.disable_reading_from_canvas = command_line.HasSwitch( 524 prefs.disable_reading_from_canvas = command_line.HasSwitch(
524 switches::kDisableReadingFromCanvas); 525 switches::kDisableReadingFromCanvas);
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 } 959 }
959 960
960 void RenderViewHostImpl::ClosePageTimeout() { 961 void RenderViewHostImpl::ClosePageTimeout() {
961 if (delegate_->ShouldIgnoreUnresponsiveRenderer()) 962 if (delegate_->ShouldIgnoreUnresponsiveRenderer())
962 return; 963 return;
963 964
964 ClosePageIgnoringUnloadEvents(); 965 ClosePageIgnoringUnloadEvents();
965 } 966 }
966 967
967 } // namespace content 968 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698