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

Unified Diff: content/renderer/render_widget.h

Issue 2609093002: Revert of Use consistent types for ICC profiles (Closed)
Patch Set: Created 3 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 303aed11f6138e5d0e18cd089df4bbc2c59fa3b6..76bcebaed022f37c9f0d1281470aeb683818e08c 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -384,8 +384,8 @@
// the browser even if the composition info is not changed.
void UpdateCompositionInfo(bool immediate_request);
- // Change the device color space while running a layout test.
- void SetDeviceColorSpaceForTesting(const gfx::ColorSpace& color_space);
+ // Change the device ICC color profile while running a layout test.
+ void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile);
// Called when the Widget has changed size as a result of an auto-resize.
void DidAutoResize(const gfx::Size& new_size);
@@ -544,6 +544,7 @@
void AutoResizeCompositor();
virtual void OnSetDeviceScaleFactor(float device_scale_factor);
+ bool SetDeviceColorProfile(const std::vector<char>& color_profile);
virtual void OnOrientationChange();
@@ -741,6 +742,9 @@
// |screen_info_| on some platforms, and defaults to 1 on other platforms.
float device_scale_factor_;
+ // The device color profile on supported platforms.
+ std::vector<char> device_color_profile_;
+
// State associated with synthetic gestures. Synthetic gestures are processed
// in-order, so a queue is sufficient to identify the correct state for a
// completed gesture.
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698