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

Unified Diff: include/core/SkDeviceProperties.h

Issue 14884010: Mask orientation and layout correctly. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Our mac port doesn't support vertical or bgr either. Created 7 years, 7 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
Index: include/core/SkDeviceProperties.h
===================================================================
--- include/core/SkDeviceProperties.h (revision 9015)
+++ include/core/SkDeviceProperties.h (working copy)
@@ -46,10 +46,10 @@
};
Orientation getOrientation() {
- return static_cast<Orientation>(fGeometry | kOrientationMask);
+ return static_cast<Orientation>(fGeometry & kOrientationMask);
}
Layout getLayout() {
- return static_cast<Layout>(fGeometry | kLayoutMask);
+ return static_cast<Layout>(fGeometry & kLayoutMask);
}
bool isOrientationKnown() {
« no previous file with comments | « gyp/gmslides.gypi ('k') | src/ports/SkFontHost_mac.cpp » ('j') | src/ports/SkFontHost_mac.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698