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

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

Issue 966753002: Revert of replace kIgnore_SkAlphaType with kUnknown_SkAlphaType (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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 | include/core/SkImageInfo.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 * 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 SkCanvas_DEFINED 8 #ifndef SkCanvas_DEFINED
9 #define SkCanvas_DEFINED 9 #define SkCanvas_DEFINED
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 /** 58 /**
59 * Attempt to allocate raster canvas, matching the ImageInfo, that will dra w directly into the 59 * Attempt to allocate raster canvas, matching the ImageInfo, that will dra w directly into the
60 * specified pixels. To access the pixels after drawing to them, the caller should call 60 * specified pixels. To access the pixels after drawing to them, the caller should call
61 * flush() or call peekPixels(...). 61 * flush() or call peekPixels(...).
62 * 62 *
63 * On failure, return NULL. This can fail for several reasons: 63 * On failure, return NULL. This can fail for several reasons:
64 * 1. invalid ImageInfo (e.g. negative dimensions) 64 * 1. invalid ImageInfo (e.g. negative dimensions)
65 * 2. unsupported ImageInfo for a canvas 65 * 2. unsupported ImageInfo for a canvas
66 * - kUnknown_SkColorType, kIndex_8_SkColorType 66 * - kUnknown_SkColorType, kIndex_8_SkColorType
67 * - kUnknown_SkAlphaType 67 * - kIgnore_SkAlphaType
68 * - this list is not complete, so others may also be unsupported 68 * - this list is not complete, so others may also be unsupported
69 * 69 *
70 * Note: it is valid to request a supported ImageInfo, but with zero 70 * Note: it is valid to request a supported ImageInfo, but with zero
71 * dimensions. 71 * dimensions.
72 */ 72 */
73 static SkCanvas* NewRasterDirect(const SkImageInfo&, void*, size_t); 73 static SkCanvas* NewRasterDirect(const SkImageInfo&, void*, size_t);
74 74
75 static SkCanvas* NewRasterDirectN32(int width, int height, SkPMColor* pixels , size_t rowBytes) { 75 static SkCanvas* NewRasterDirectN32(int width, int height, SkPMColor* pixels , size_t rowBytes) {
76 return NewRasterDirect(SkImageInfo::MakeN32Premul(width, height), pixels , rowBytes); 76 return NewRasterDirect(SkImageInfo::MakeN32Premul(width, height), pixels , rowBytes);
77 } 77 }
(...skipping 1413 matching lines...) Expand 10 before | Expand all | Expand 10 after
1491 1491
1492 class SkCanvasClipVisitor { 1492 class SkCanvasClipVisitor {
1493 public: 1493 public:
1494 virtual ~SkCanvasClipVisitor(); 1494 virtual ~SkCanvasClipVisitor();
1495 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1495 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1496 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1496 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1497 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1497 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1498 }; 1498 };
1499 1499
1500 #endif 1500 #endif
OLDNEW
« no previous file with comments | « no previous file | include/core/SkImageInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698