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

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

Issue 764433003: Flail a little against LLVM crash. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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 | src/core/SkColorTable.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 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkColorTable_DEFINED 10 #ifndef SkColorTable_DEFINED
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 const SkPMColor* readColors() const { return fColors; } 46 const SkPMColor* readColors() const { return fColors; }
47 47
48 /** read16BitCache() returns the array of RGB16 colors that mirror the 32bit colors. 48 /** read16BitCache() returns the array of RGB16 colors that mirror the 32bit colors.
49 */ 49 */
50 const uint16_t* read16BitCache() const; 50 const uint16_t* read16BitCache() const;
51 51
52 explicit SkColorTable(SkReadBuffer&); 52 explicit SkColorTable(SkReadBuffer&);
53 void writeToBuffer(SkWriteBuffer&) const; 53 void writeToBuffer(SkWriteBuffer&) const;
54 54
55 private: 55 private:
56 static void Free16BitCache(uint16_t* cache) { sk_free(cache); } 56 static void Free16BitCache(uint16_t*);
57 57
58 SkPMColor* fColors; 58 SkPMColor* fColors;
59 SkLazyPtr<uint16_t, Free16BitCache> f16BitCache; 59 SkLazyPtr<uint16_t, Free16BitCache> f16BitCache;
60 int fCount; 60 int fCount;
61 61
62 void init(const SkPMColor* colors, int count); 62 void init(const SkPMColor* colors, int count);
63 63
64 typedef SkRefCnt INHERITED; 64 typedef SkRefCnt INHERITED;
65 }; 65 };
66 66
67 #endif 67 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkColorTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698