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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 1796293003: Image decode color: Push color profile from browser to renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: leave empty check 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
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/renderer_blink_platform_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) 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/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 716
717 webview()->setDisplayMode(display_mode_); 717 webview()->setDisplayMode(display_mode_);
718 webview()->settings()->setPreferCompositingToLCDTextEnabled( 718 webview()->settings()->setPreferCompositingToLCDTextEnabled(
719 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); 719 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_));
720 webview()->settings()->setThreadedScrollingEnabled( 720 webview()->settings()->setThreadedScrollingEnabled(
721 !command_line.HasSwitch(switches::kDisableThreadedScrolling)); 721 !command_line.HasSwitch(switches::kDisableThreadedScrolling));
722 webview()->settings()->setRootLayerScrolls( 722 webview()->settings()->setRootLayerScrolls(
723 command_line.HasSwitch(switches::kRootLayerScrolls)); 723 command_line.HasSwitch(switches::kRootLayerScrolls));
724 webview()->setShowFPSCounter( 724 webview()->setShowFPSCounter(
725 command_line.HasSwitch(cc::switches::kShowFPSCounter)); 725 command_line.HasSwitch(cc::switches::kShowFPSCounter));
726 webview()->setDeviceColorProfile(params.image_decode_color_profile);
726 727
727 ApplyWebPreferencesInternal(webkit_preferences_, webview(), compositor_deps_); 728 ApplyWebPreferencesInternal(webkit_preferences_, webview(), compositor_deps_);
728 729
729 if (switches::IsTouchDragDropEnabled()) 730 if (switches::IsTouchDragDropEnabled())
730 webview()->settings()->setTouchDragDropEnabled(true); 731 webview()->settings()->setTouchDragDropEnabled(true);
731 732
732 WebSettings::SelectionStrategyType selection_strategy = 733 WebSettings::SelectionStrategyType selection_strategy =
733 WebSettings::SelectionStrategyType::Character; 734 WebSettings::SelectionStrategyType::Character;
734 const std::string selection_strategy_str = 735 const std::string selection_strategy_str =
735 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 736 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
(...skipping 2526 matching lines...) Expand 10 before | Expand all | Expand 10 after
3262 return render_frame->focused_pepper_plugin(); 3263 return render_frame->focused_pepper_plugin();
3263 } 3264 }
3264 frame = frame->traverseNext(false); 3265 frame = frame->traverseNext(false);
3265 } 3266 }
3266 3267
3267 return nullptr; 3268 return nullptr;
3268 } 3269 }
3269 #endif 3270 #endif
3270 3271
3271 } // namespace content 3272 } // namespace content
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/renderer_blink_platform_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698