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

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

Issue 26709002: Revert "change SkColorTable to be immutable" (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « gm/tinybitmap.cpp ('k') | include/core/SkBitmap.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 2013 Google Inc. 2 * Copyright 2013 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 SkAlpha_DEFINED 8 #ifndef SkAlpha_DEFINED
9 #define SkAlpha_DEFINED 9 #define SkAlpha_DEFINED
10 10
(...skipping 29 matching lines...) Expand all
40 * alpha. e.g. this is the default configuration for PNG images. 40 * alpha. e.g. this is the default configuration for PNG images.
41 * 41 *
42 * This alpha-type is ONLY supported for input images. Rendering cannot 42 * This alpha-type is ONLY supported for input images. Rendering cannot
43 * generate this on output. 43 * generate this on output.
44 */ 44 */
45 kUnpremul_SkAlphaType, 45 kUnpremul_SkAlphaType,
46 46
47 kLastEnum_SkAlphaType = kUnpremul_SkAlphaType 47 kLastEnum_SkAlphaType = kUnpremul_SkAlphaType
48 }; 48 };
49 49
50 static inline bool SkAlphaTypeIsOpaque(SkAlphaType at) {
51 return (unsigned)at <= kOpaque_SkAlphaType;
52 }
53 #endif 50 #endif
OLDNEW
« no previous file with comments | « gm/tinybitmap.cpp ('k') | include/core/SkBitmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698