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

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

Issue 2742613002: color: Always use parametric color spaces for raster (Closed)
Patch Set: Incorporate review feedback Created 3 years, 9 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/renderer/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after
1189 DCHECK(!params.needs_resize_ack || !next_paint_is_resize_ack()); 1189 DCHECK(!params.needs_resize_ack || !next_paint_is_resize_ack());
1190 } 1190 }
1191 1191
1192 // Ignore this during shutdown. 1192 // Ignore this during shutdown.
1193 if (!GetWebWidget()) 1193 if (!GetWebWidget())
1194 return; 1194 return;
1195 1195
1196 if (compositor_) { 1196 if (compositor_) {
1197 compositor_->setViewportSize(params.physical_backing_size); 1197 compositor_->setViewportSize(params.physical_backing_size);
1198 compositor_->setBottomControlsHeight(params.bottom_controls_height); 1198 compositor_->setBottomControlsHeight(params.bottom_controls_height);
1199 compositor_->SetRasterColorSpace(screen_info_.icc_profile.GetColorSpace()); 1199 compositor_->SetRasterColorSpace(
1200 screen_info_.icc_profile.GetParametricColorSpace());
1200 } 1201 }
1201 1202
1202 visible_viewport_size_ = params.visible_viewport_size; 1203 visible_viewport_size_ = params.visible_viewport_size;
1203 1204
1204 // NOTE: We may have entered fullscreen mode without changing our size. 1205 // NOTE: We may have entered fullscreen mode without changing our size.
1205 bool fullscreen_change = 1206 bool fullscreen_change =
1206 is_fullscreen_granted_ != params.is_fullscreen_granted; 1207 is_fullscreen_granted_ != params.is_fullscreen_granted;
1207 is_fullscreen_granted_ = params.is_fullscreen_granted; 1208 is_fullscreen_granted_ = params.is_fullscreen_granted;
1208 display_mode_ = params.display_mode; 1209 display_mode_ = params.display_mode;
1209 1210
(...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after
2323 // browser side (https://crbug.com/669219). 2324 // browser side (https://crbug.com/669219).
2324 // If there is no WebFrameWidget, then there will be no 2325 // If there is no WebFrameWidget, then there will be no
2325 // InputMethodControllers for a WebLocalFrame. 2326 // InputMethodControllers for a WebLocalFrame.
2326 return nullptr; 2327 return nullptr;
2327 } 2328 }
2328 return static_cast<blink::WebFrameWidget*>(GetWebWidget()) 2329 return static_cast<blink::WebFrameWidget*>(GetWebWidget())
2329 ->getActiveWebInputMethodController(); 2330 ->getActiveWebInputMethodController();
2330 } 2331 }
2331 2332
2332 } // namespace content 2333 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.mm ('k') | ui/aura/window_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698