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

Side by Side Diff: src/core/SkScalerContext.h

Issue 1196683003: remove SkDeviceProperties (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Clean up Created 5 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 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 SkScalerContext_DEFINED 8 #ifndef SkScalerContext_DEFINED
9 #define SkScalerContext_DEFINED 9 #define SkScalerContext_DEFINED
10 10
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 */ 230 */
231 static size_t GetGammaLUTSize(SkScalar contrast, SkScalar paintGamma, SkScal ar deviceGamma, 231 static size_t GetGammaLUTSize(SkScalar contrast, SkScalar paintGamma, SkScal ar deviceGamma,
232 int* width, int* height); 232 int* width, int* height);
233 233
234 /** Get the associated gamma lookup table. The 'data' pointer must point to pre-allocated 234 /** Get the associated gamma lookup table. The 'data' pointer must point to pre-allocated
235 memory, with size in bytes greater than or equal to the return value of getGammaLUTSize(). 235 memory, with size in bytes greater than or equal to the return value of getGammaLUTSize().
236 */ 236 */
237 static void GetGammaLUTData(SkScalar contrast, SkScalar paintGamma, SkScal ar deviceGamma, 237 static void GetGammaLUTData(SkScalar contrast, SkScalar paintGamma, SkScal ar deviceGamma,
238 void* data); 238 void* data);
239 239
240 static void MakeRec(const SkPaint&, const SkDeviceProperties* deviceProperti es, 240 static void MakeRec(const SkPaint&, const SkSurfaceProps* surfaceProps,
241 const SkMatrix*, Rec* rec); 241 const SkMatrix*, Rec* rec);
242 static inline void PostMakeRec(const SkPaint&, Rec*); 242 static inline void PostMakeRec(const SkPaint&, Rec*);
243 243
244 static SkMaskGamma::PreBlend GetMaskPreBlend(const Rec& rec); 244 static SkMaskGamma::PreBlend GetMaskPreBlend(const Rec& rec);
245 245
246 const Rec& getRec() const { return fRec; } 246 const Rec& getRec() const { return fRec; }
247 247
248 protected: 248 protected:
249 Rec fRec; 249 Rec fRec;
250 250
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 return static_cast<SkPaint::Hinting>(hint); 359 return static_cast<SkPaint::Hinting>(hint);
360 } 360 }
361 361
362 void SkScalerContextRec::setHinting(SkPaint::Hinting hinting) { 362 void SkScalerContextRec::setHinting(SkPaint::Hinting hinting) {
363 fFlags = (fFlags & ~SkScalerContext::kHinting_Mask) | 363 fFlags = (fFlags & ~SkScalerContext::kHinting_Mask) |
364 (hinting << SkScalerContext::kHinting_Shift); 364 (hinting << SkScalerContext::kHinting_Shift);
365 } 365 }
366 366
367 367
368 #endif 368 #endif
OLDNEW
« no previous file with comments | « src/core/SkPaint.cpp ('k') | src/gpu/GrAtlasTextContext.h » ('j') | src/gpu/SkGpuDevice.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698