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

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

Issue 23591030: start to remove lockPixels from bitmapshader (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 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
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 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 #include "SkPixelRef.h" 8 #include "SkPixelRef.h"
9 #include "SkFlattenableBuffers.h" 9 #include "SkFlattenableBuffers.h"
10 #include "SkThread.h" 10 #include "SkThread.h"
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 } 160 }
161 161
162 bool SkPixelRef::lockPixelsAreWritable() const { 162 bool SkPixelRef::lockPixelsAreWritable() const {
163 return this->onLockPixelsAreWritable(); 163 return this->onLockPixelsAreWritable();
164 } 164 }
165 165
166 bool SkPixelRef::onLockPixelsAreWritable() const { 166 bool SkPixelRef::onLockPixelsAreWritable() const {
167 return true; 167 return true;
168 } 168 }
169 169
170 bool SkPixelRef::onDecodeInto(int pow2, SkBitmap* bitmap) {
171 return false;
172 }
173
170 uint32_t SkPixelRef::getGenerationID() const { 174 uint32_t SkPixelRef::getGenerationID() const {
171 if (0 == fGenerationID) { 175 if (0 == fGenerationID) {
172 fGenerationID = SkNextPixelRefGenerationID(); 176 fGenerationID = SkNextPixelRefGenerationID();
173 } 177 }
174 return fGenerationID; 178 return fGenerationID;
175 } 179 }
176 180
177 void SkPixelRef::notifyPixelsChanged() { 181 void SkPixelRef::notifyPixelsChanged() {
178 #ifdef SK_DEBUG 182 #ifdef SK_DEBUG
179 if (fIsImmutable) { 183 if (fIsImmutable) {
(...skipping 24 matching lines...) Expand all
204 208
205 #ifdef SK_BUILD_FOR_ANDROID 209 #ifdef SK_BUILD_FOR_ANDROID
206 void SkPixelRef::globalRef(void* data) { 210 void SkPixelRef::globalRef(void* data) {
207 this->ref(); 211 this->ref();
208 } 212 }
209 213
210 void SkPixelRef::globalUnref() { 214 void SkPixelRef::globalUnref() {
211 this->unref(); 215 this->unref();
212 } 216 }
213 #endif 217 #endif
OLDNEW
« src/core/SkBitmapProcState.cpp ('K') | « src/core/SkBitmapProcState.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698