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

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

Issue 741763002: add SkImage::newSurface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: another warning fix 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 | « include/core/SkImage.h ('k') | src/image/SkImage.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 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 kDisallowDither_Flag = 1 << 1, 55 kDisallowDither_Flag = 1 << 1,
56 kUseDistanceFieldFonts_Flag = 1 << 2, 56 kUseDistanceFieldFonts_Flag = 1 << 2,
57 }; 57 };
58 SkSurfaceProps(uint32_t flags, SkPixelGeometry); 58 SkSurfaceProps(uint32_t flags, SkPixelGeometry);
59 59
60 enum InitType { 60 enum InitType {
61 kLegacyFontHost_InitType 61 kLegacyFontHost_InitType
62 }; 62 };
63 SkSurfaceProps(InitType); 63 SkSurfaceProps(InitType);
64 SkSurfaceProps(uint32_t flags, InitType); 64 SkSurfaceProps(uint32_t flags, InitType);
65 SkSurfaceProps(const SkSurfaceProps& other);
65 66
66 uint32_t flags() const { return fFlags; } 67 uint32_t flags() const { return fFlags; }
67 SkPixelGeometry pixelGeometry() const { return fPixelGeometry; } 68 SkPixelGeometry pixelGeometry() const { return fPixelGeometry; }
68 69
69 bool isDisallowAA() const { return SkToBool(fFlags & kDisallowAntiAlias_Flag ); } 70 bool isDisallowAA() const { return SkToBool(fFlags & kDisallowAntiAlias_Flag ); }
70 bool isDisallowDither() const { return SkToBool(fFlags & kDisallowDither_Fla g); } 71 bool isDisallowDither() const { return SkToBool(fFlags & kDisallowDither_Fla g); }
71 bool isUseDistanceFieldFonts() const { return SkToBool(fFlags & kUseDistance FieldFonts_Flag); } 72 bool isUseDistanceFieldFonts() const { return SkToBool(fFlags & kUseDistance FieldFonts_Flag); }
72 73
73 private: 74 private:
74 SkSurfaceProps(); 75 SkSurfaceProps();
75 76
76 uint32_t fFlags; 77 uint32_t fFlags;
77 SkPixelGeometry fPixelGeometry; 78 SkPixelGeometry fPixelGeometry;
78 }; 79 };
79 80
80 #endif 81 #endif
OLDNEW
« no previous file with comments | « include/core/SkImage.h ('k') | src/image/SkImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698