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

Side by Side Diff: include/core/SkSurfaceProps.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 2014 Google Inc. 2 * Copyright 2014 Google Inc.
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 SkSurfaceProps_DEFINED 8 #ifndef SkSurfaceProps_DEFINED
9 #define SkSurfaceProps_DEFINED 9 #define SkSurfaceProps_DEFINED
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 SkSurfaceProps(uint32_t flags, InitType); 64 SkSurfaceProps(uint32_t flags, InitType);
65 SkSurfaceProps(const SkSurfaceProps& other); 65 SkSurfaceProps(const SkSurfaceProps& other);
66 66
67 uint32_t flags() const { return fFlags; } 67 uint32_t flags() const { return fFlags; }
68 SkPixelGeometry pixelGeometry() const { return fPixelGeometry; } 68 SkPixelGeometry pixelGeometry() const { return fPixelGeometry; }
69 69
70 bool isDisallowAA() const { return SkToBool(fFlags & kDisallowAntiAlias_Flag ); } 70 bool isDisallowAA() const { return SkToBool(fFlags & kDisallowAntiAlias_Flag ); }
71 bool isDisallowDither() const { return SkToBool(fFlags & kDisallowDither_Fla g); } 71 bool isDisallowDither() const { return SkToBool(fFlags & kDisallowDither_Fla g); }
72 bool isUseDistanceFieldFonts() const { return SkToBool(fFlags & kUseDistance FieldFonts_Flag); } 72 bool isUseDistanceFieldFonts() const { return SkToBool(fFlags & kUseDistance FieldFonts_Flag); }
73 73
74 // TODO: remove this entry point
75 void setPixelGeometry_dont_use(SkPixelGeometry geo) { fPixelGeometry = geo; }
76
74 private: 77 private:
75 SkSurfaceProps(); 78 SkSurfaceProps();
76 79
77 uint32_t fFlags; 80 uint32_t fFlags;
78 SkPixelGeometry fPixelGeometry; 81 SkPixelGeometry fPixelGeometry;
79 }; 82 };
80 83
81 #endif 84 #endif
OLDNEW
« no previous file with comments | « include/core/SkPaint.h ('k') | include/gpu/GrContext.h » ('j') | src/gpu/SkGpuDevice.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698