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

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

Issue 2150013003: Add IPC support for gfx::ColorSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl try 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/public/common/BUILD.gn ('k') | ui/gfx/color_space.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 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 718
719 webview()->setDisplayMode(display_mode_); 719 webview()->setDisplayMode(display_mode_);
720 webview()->settings()->setPreferCompositingToLCDTextEnabled( 720 webview()->settings()->setPreferCompositingToLCDTextEnabled(
721 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); 721 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_));
722 webview()->settings()->setThreadedScrollingEnabled( 722 webview()->settings()->setThreadedScrollingEnabled(
723 !command_line.HasSwitch(switches::kDisableThreadedScrolling)); 723 !command_line.HasSwitch(switches::kDisableThreadedScrolling));
724 webview()->settings()->setRootLayerScrolls( 724 webview()->settings()->setRootLayerScrolls(
725 command_line.HasSwitch(switches::kRootLayerScrolls)); 725 command_line.HasSwitch(switches::kRootLayerScrolls));
726 webview()->setShowFPSCounter( 726 webview()->setShowFPSCounter(
727 command_line.HasSwitch(cc::switches::kShowFPSCounter)); 727 command_line.HasSwitch(cc::switches::kShowFPSCounter));
728 webview()->setDeviceColorProfile(params.image_decode_color_profile); 728 webview()->setDeviceColorProfile(
729 params.image_decode_color_space.GetICCProfile());
729 730
730 ApplyWebPreferencesInternal(webkit_preferences_, webview(), compositor_deps_); 731 ApplyWebPreferencesInternal(webkit_preferences_, webview(), compositor_deps_);
731 732
732 if (switches::IsTouchDragDropEnabled()) 733 if (switches::IsTouchDragDropEnabled())
733 webview()->settings()->setTouchDragDropEnabled(true); 734 webview()->settings()->setTouchDragDropEnabled(true);
734 735
735 WebSettings::SelectionStrategyType selection_strategy = 736 WebSettings::SelectionStrategyType selection_strategy =
736 WebSettings::SelectionStrategyType::Character; 737 WebSettings::SelectionStrategyType::Character;
737 const std::string selection_strategy_str = 738 const std::string selection_strategy_str =
738 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 739 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
(...skipping 2501 matching lines...) Expand 10 before | Expand all | Expand 10 after
3240 return render_frame->focused_pepper_plugin(); 3241 return render_frame->focused_pepper_plugin();
3241 } 3242 }
3242 frame = frame->traverseNext(false); 3243 frame = frame->traverseNext(false);
3243 } 3244 }
3244 3245
3245 return nullptr; 3246 return nullptr;
3246 } 3247 }
3247 #endif 3248 #endif
3248 3249
3249 } // namespace content 3250 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/BUILD.gn ('k') | ui/gfx/color_space.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698