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

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

Issue 92793002: Fixed bad bitmap size crashes (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Changed getSize name to getAllocatedSizeInBytes Created 7 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 | 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 } 240 }
241 241
242 bool SkPixelRef::onReadPixels(SkBitmap* dst, const SkIRect* subset) { 242 bool SkPixelRef::onReadPixels(SkBitmap* dst, const SkIRect* subset) {
243 return false; 243 return false;
244 } 244 }
245 245
246 SkData* SkPixelRef::onRefEncodedData() { 246 SkData* SkPixelRef::onRefEncodedData() {
247 return NULL; 247 return NULL;
248 } 248 }
249 249
250 size_t SkPixelRef::getAllocatedSizeInBytes() const {
251 return 0;
252 }
253
250 /////////////////////////////////////////////////////////////////////////////// 254 ///////////////////////////////////////////////////////////////////////////////
251 255
252 #ifdef SK_BUILD_FOR_ANDROID 256 #ifdef SK_BUILD_FOR_ANDROID
253 void SkPixelRef::globalRef(void* data) { 257 void SkPixelRef::globalRef(void* data) {
254 this->ref(); 258 this->ref();
255 } 259 }
256 260
257 void SkPixelRef::globalUnref() { 261 void SkPixelRef::globalUnref() {
258 this->unref(); 262 this->unref();
259 } 263 }
260 #endif 264 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698