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

Unified Diff: Source/platform/graphics/GraphicsContext.h

Issue 407553002: [Linux] Enable subpixel text on high-dpi regardless of hinting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase w/head Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/fonts/linux/FontPlatformDataLinux.cpp ('k') | Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsContext.h
diff --git a/Source/platform/graphics/GraphicsContext.h b/Source/platform/graphics/GraphicsContext.h
index 53f79c6064cb0145515eb5435a7a82556cca0b54..866d42e2d6bc8fe16e77f5a271000a856f39ab88 100644
--- a/Source/platform/graphics/GraphicsContext.h
+++ b/Source/platform/graphics/GraphicsContext.h
@@ -197,9 +197,10 @@ public:
CompositeOperator compositeOperation() const { return immutableState()->compositeOperator(); }
blink::WebBlendMode blendModeOperation() const { return immutableState()->blendMode(); }
- // Change the way document markers are rendered.
- // Any deviceScaleFactor higher than 1.5 is enough to justify setting this flag.
- void setUseHighResMarkers(bool isHighRes) { m_useHighResMarker = isHighRes; }
+ // Speicy the device scale factor which may change the way document markers
+ // and fonts are rendered.
+ void setDeviceScaleFactor(float factor) { m_deviceScaleFactor = factor; }
+ float deviceScaleFactor() const { return m_deviceScaleFactor; }
// If true we are (most likely) rendering to a web page and the
// canvas has been prepared with an opaque background. If false,
@@ -513,12 +514,12 @@ private:
unsigned m_disabledState;
+ float m_deviceScaleFactor;
+
// Activation for the above region tracking features
bool m_trackOpaqueRegion : 1;
bool m_trackTextRegion : 1;
- // Are we on a high DPI display? If so, spelling and grammar markers are larger.
- bool m_useHighResMarker : 1;
// FIXME: Make this go away: crbug.com/236892
bool m_updatingControlTints : 1;
bool m_accelerated : 1;
« no previous file with comments | « Source/platform/fonts/linux/FontPlatformDataLinux.cpp ('k') | Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698