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

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

Issue 940323003: Revert of Make SkPixelRef::isLocked() debug-only, remove related dead code. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « src/core/SkBitmapProcState.cpp ('k') | src/lazy/SkDiscardablePixelRef.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 2011 Google Inc. 2 * Copyright 2011 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 #include "SkPixelRef.h" 8 #include "SkPixelRef.h"
9 #include "SkThread.h" 9 #include "SkThread.h"
10 10
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 } 190 }
191 191
192 bool SkPixelRef::lockPixelsAreWritable() const { 192 bool SkPixelRef::lockPixelsAreWritable() const {
193 return this->onLockPixelsAreWritable(); 193 return this->onLockPixelsAreWritable();
194 } 194 }
195 195
196 bool SkPixelRef::onLockPixelsAreWritable() const { 196 bool SkPixelRef::onLockPixelsAreWritable() const {
197 return true; 197 return true;
198 } 198 }
199 199
200 bool SkPixelRef::onImplementsDecodeInto() {
201 return false;
202 }
203
204 bool SkPixelRef::onDecodeInto(int pow2, SkBitmap* bitmap) {
205 return false;
206 }
207
200 uint32_t SkPixelRef::getGenerationID() const { 208 uint32_t SkPixelRef::getGenerationID() const {
201 if (0 == fGenerationID) { 209 if (0 == fGenerationID) {
202 fGenerationID = SkNextPixelRefGenerationID(); 210 fGenerationID = SkNextPixelRefGenerationID();
203 fUniqueGenerationID = true; // The only time we can be sure of this! 211 fUniqueGenerationID = true; // The only time we can be sure of this!
204 } 212 }
205 return fGenerationID; 213 return fGenerationID;
206 } 214 }
207 215
208 void SkPixelRef::addGenIDChangeListener(GenIDChangeListener* listener) { 216 void SkPixelRef::addGenIDChangeListener(GenIDChangeListener* listener) {
209 if (NULL == listener || !fUniqueGenerationID) { 217 if (NULL == listener || !fUniqueGenerationID) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 265
258 bool SkPixelRef::onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBy tes[3], 266 bool SkPixelRef::onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBy tes[3],
259 SkYUVColorSpace* colorSpace) { 267 SkYUVColorSpace* colorSpace) {
260 return false; 268 return false;
261 } 269 }
262 270
263 size_t SkPixelRef::getAllocatedSizeInBytes() const { 271 size_t SkPixelRef::getAllocatedSizeInBytes() const {
264 return 0; 272 return 0;
265 } 273 }
266 274
OLDNEW
« no previous file with comments | « src/core/SkBitmapProcState.cpp ('k') | src/lazy/SkDiscardablePixelRef.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698