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

Side by Side Diff: src/core/SkProcSpriteBlitter.cpp

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 | « src/core/SkColorTable.cpp ('k') | src/core/SkSpriteBlitter_RGB16.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 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
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 #if 0 // experimental 10 #if 0 // experimental
(...skipping 18 matching lines...) Expand all
29 ctable = fSource.getColorTable()->lockColors(); 29 ctable = fSource.getColorTable()->lockColors();
30 30
31 while (--height >= 0) 31 while (--height >= 0)
32 { 32 {
33 proc(dst, src, width, ctable); 33 proc(dst, src, width, ctable);
34 dst += dstRB; 34 dst += dstRB;
35 src += srcRB; 35 src += srcRB;
36 } 36 }
37 37
38 if fSource.getColorTable()) 38 if fSource.getColorTable())
39 fSource.getColorTable()->unlockColors(); 39 fSource.getColorTable()->unlockColors(false);
40 } 40 }
41 41
42 private: 42 private:
43 Proc fProc; 43 Proc fProc;
44 uint8_t fSrcShift, fDstShift; 44 uint8_t fSrcShift, fDstShift;
45 }; 45 };
46 46
47 #endif 47 #endif
OLDNEW
« no previous file with comments | « src/core/SkColorTable.cpp ('k') | src/core/SkSpriteBlitter_RGB16.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698