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

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

Issue 719253002: rename filterTextFlags to disableLCD (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rename disableLCD to shouldDisableLCD Created 6 years, 1 month 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 | include/core/SkCanvas.h » ('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 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef SkBitmapDevice_DEFINED 9 #ifndef SkBitmapDevice_DEFINED
10 #define SkBitmapDevice_DEFINED 10 #define SkBitmapDevice_DEFINED
(...skipping 20 matching lines...) Expand all
31 SkBitmapDevice(const SkBitmap& bitmap, const SkDeviceProperties& devicePrope rties); 31 SkBitmapDevice(const SkBitmap& bitmap, const SkDeviceProperties& devicePrope rties);
32 static SkBitmapDevice* Create(const SkImageInfo&, const SkDeviceProperties*) ; 32 static SkBitmapDevice* Create(const SkImageInfo&, const SkDeviceProperties*) ;
33 public: 33 public:
34 static SkBitmapDevice* Create(const SkImageInfo& info) { 34 static SkBitmapDevice* Create(const SkImageInfo& info) {
35 return Create(info, NULL); 35 return Create(info, NULL);
36 } 36 }
37 37
38 virtual SkImageInfo imageInfo() const SK_OVERRIDE; 38 virtual SkImageInfo imageInfo() const SK_OVERRIDE;
39 39
40 protected: 40 protected:
41 virtual bool filterTextFlags(const SkPaint& paint, TextFlags*) SK_OVERRIDE; 41 bool onShouldDisableLCD(const SkPaint&) const SK_OVERRIDE;
42 42
43 /** Clears the entire device to the specified color (including alpha). 43 /** Clears the entire device to the specified color (including alpha).
44 * Ignores the clip. 44 * Ignores the clip.
45 */ 45 */
46 virtual void clear(SkColor color) SK_OVERRIDE; 46 virtual void clear(SkColor color) SK_OVERRIDE;
47 47
48 /** These are called inside the per-device-layer loop for each draw call. 48 /** These are called inside the per-device-layer loop for each draw call.
49 When these are called, we have already applied any saveLayer operations, 49 When these are called, we have already applied any saveLayer operations,
50 and are handling any looping from the paint, and any effects from the 50 and are handling any looping from the paint, and any effects from the
51 DrawFilter. 51 DrawFilter.
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE; 159 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE;
160 160
161 virtual SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; 161 virtual SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE;
162 162
163 SkBitmap fBitmap; 163 SkBitmap fBitmap;
164 164
165 typedef SkBaseDevice INHERITED; 165 typedef SkBaseDevice INHERITED;
166 }; 166 };
167 167
168 #endif // SkBitmapDevice_DEFINED 168 #endif // SkBitmapDevice_DEFINED
OLDNEW
« no previous file with comments | « no previous file | include/core/SkCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698