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

Side by Side Diff: src/opts/SkBitmapProcState_opts_arm.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/images/SkImageDecoder_libpng.cpp ('k') | no next file » | 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 2009 The Android Open Source Project 2 * Copyright 2009 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 8
9 #include "SkBitmapProcState.h" 9 #include "SkBitmapProcState.h"
10 #include "SkColorPriv.h" 10 #include "SkColorPriv.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 "ldr r6, [%[table], r5, lsl #2] \n\t" // loa d SkPMColor from colmap 177 "ldr r6, [%[table], r5, lsl #2] \n\t" // loa d SkPMColor from colmap
178 "str r6, [%[colors]], #4 \n\t" // sto re pixel, update ptr 178 "str r6, [%[colors]], #4 \n\t" // sto re pixel, update ptr
179 "bne 3b \n\t" // loo p if counter != 0 179 "bne 3b \n\t" // loo p if counter != 0
180 "4: \n\t" // exit 180 "4: \n\t" // exit
181 : [xx] "+r" (xx), [count] "+r" (count), [colors] "+r" (col ors) 181 : [xx] "+r" (xx), [count] "+r" (count), [colors] "+r" (col ors)
182 : [table] "r" (table), [srcAddr] "r" (srcAddr) 182 : [table] "r" (table), [srcAddr] "r" (srcAddr)
183 : "memory", "cc", "r4", "r5", "r6", "r7", "r8", "r9", "r10 ", "r11" 183 : "memory", "cc", "r4", "r5", "r6", "r7", "r8", "r9", "r10 ", "r11"
184 ); 184 );
185 } 185 }
186 186
187 s.fBitmap->getColorTable()->unlockColors(); 187 s.fBitmap->getColorTable()->unlockColors(false);
188 } 188 }
189 #endif // SK_ARM_ARCH >= 6 && !defined(SK_CPU_BENDIAN) 189 #endif // SK_ARM_ARCH >= 6 && !defined(SK_CPU_BENDIAN)
190 190
191 /////////////////////////////////////////////////////////////////////////////// 191 ///////////////////////////////////////////////////////////////////////////////
192 192
193 /* If we replace a sampleproc, then we null-out the associated shaderproc, 193 /* If we replace a sampleproc, then we null-out the associated shaderproc,
194 otherwise the shader won't even look at the matrix/sampler 194 otherwise the shader won't even look at the matrix/sampler
195 */ 195 */
196 void SkBitmapProcState::platformProcs() { 196 void SkBitmapProcState::platformProcs() {
197 bool isOpaque = 256 == fAlphaScale; 197 bool isOpaque = 256 == fAlphaScale;
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 // to operate on four rows at once, which is correct but not performance -optimal. 413 // to operate on four rows at once, which is correct but not performance -optimal.
414 414
415 // procs->fConvolve4RowsHorizontally = &convolve4RowsHorizontally_arm; 415 // procs->fConvolve4RowsHorizontally = &convolve4RowsHorizontally_arm;
416 416
417 procs->fConvolve4RowsHorizontally = NULL; 417 procs->fConvolve4RowsHorizontally = NULL;
418 418
419 procs->fConvolveHorizontally = &convolveHorizontally_arm; 419 procs->fConvolveHorizontally = &convolveHorizontally_arm;
420 procs->fApplySIMDPadding = &applySIMDPadding_arm; 420 procs->fApplySIMDPadding = &applySIMDPadding_arm;
421 } 421 }
422 } 422 }
OLDNEW
« no previous file with comments | « src/images/SkImageDecoder_libpng.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698