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

Side by Side Diff: include/core/SkDevice.h

Issue 572933004: when we disable lcd for impl reasons, add kGenA8 to document the original intent (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | src/core/SkBitmapDevice.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2010 The Android Open Source Project 2 * Copyright 2010 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkDevice_DEFINED 8 #ifndef SkDevice_DEFINED
9 #define SkDevice_DEFINED 9 #define SkDevice_DEFINED
10 10
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 #endif 131 #endif
132 }; 132 };
133 133
134 protected: 134 protected:
135 enum Usage { 135 enum Usage {
136 kGeneral_Usage, 136 kGeneral_Usage,
137 kSaveLayer_Usage // <! internal use only 137 kSaveLayer_Usage // <! internal use only
138 }; 138 };
139 139
140 struct TextFlags { 140 struct TextFlags {
141 uint32_t fFlags; // SkPaint::getFlags() 141 uint32_t fFlags; // SkPaint::getFlags()
142 SkPaint::Hinting fHinting;
143 }; 142 };
144 143
145 /** 144 /**
146 * Device may filter the text flags for drawing text here. If it wants to 145 * Device may filter the text flags for drawing text here. If it wants to
147 * make a change to the specified values, it should write them into the 146 * make a change to the specified values, it should write them into the
148 * textflags parameter (output) and return true. If the paint is fine as 147 * textflags parameter (output) and return true. If the paint is fine as
149 * is, then ignore the textflags parameter and return false. 148 * is, then ignore the textflags parameter and return false.
150 */ 149 */
151 virtual bool filterTextFlags(const SkPaint& paint, TextFlags*) { return fals e; } 150 virtual bool filterTextFlags(const SkPaint& paint, TextFlags*) { return fals e; }
152 151
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 SkMetaData* fMetaData; 392 SkMetaData* fMetaData;
394 393
395 #ifdef SK_DEBUG 394 #ifdef SK_DEBUG
396 bool fAttachedToCanvas; 395 bool fAttachedToCanvas;
397 #endif 396 #endif
398 397
399 typedef SkRefCnt INHERITED; 398 typedef SkRefCnt INHERITED;
400 }; 399 };
401 400
402 #endif 401 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkBitmapDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698