| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2008 The Android Open Source Project | 3 * Copyright 2008 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 #include "SkAtomics.h" | |
| 11 #include "SkBitmap.h" | 10 #include "SkBitmap.h" |
| 12 #include "SkColorPriv.h" | 11 #include "SkColorPriv.h" |
| 13 #include "SkDither.h" | 12 #include "SkDither.h" |
| 14 #include "SkFlattenable.h" | 13 #include "SkFlattenable.h" |
| 15 #include "SkImagePriv.h" | 14 #include "SkImagePriv.h" |
| 16 #include "SkMallocPixelRef.h" | 15 #include "SkMallocPixelRef.h" |
| 17 #include "SkMask.h" | 16 #include "SkMask.h" |
| 18 #include "SkPackBits.h" | 17 #include "SkReadBuffer.h" |
| 18 #include "SkWriteBuffer.h" |
| 19 #include "SkPixelRef.h" | 19 #include "SkPixelRef.h" |
| 20 #include "SkReadBuffer.h" | 20 #include "SkThread.h" |
| 21 #include "SkUnPreMultiply.h" | 21 #include "SkUnPreMultiply.h" |
| 22 #include "SkUtils.h" | 22 #include "SkUtils.h" |
| 23 #include "SkValidationUtils.h" | 23 #include "SkValidationUtils.h" |
| 24 #include "SkWriteBuffer.h" | 24 #include "SkPackBits.h" |
| 25 #include <new> | 25 #include <new> |
| 26 | 26 |
| 27 static bool reset_return_false(SkBitmap* bm) { | 27 static bool reset_return_false(SkBitmap* bm) { |
| 28 bm->reset(); | 28 bm->reset(); |
| 29 return false; | 29 return false; |
| 30 } | 30 } |
| 31 | 31 |
| 32 SkBitmap::SkBitmap() { | 32 SkBitmap::SkBitmap() { |
| 33 sk_bzero(this, sizeof(*this)); | 33 sk_bzero(this, sizeof(*this)); |
| 34 } | 34 } |
| (...skipping 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1304 /////////////////////////////////////////////////////////////////////////////// | 1304 /////////////////////////////////////////////////////////////////////////////// |
| 1305 | 1305 |
| 1306 #ifdef SK_DEBUG | 1306 #ifdef SK_DEBUG |
| 1307 void SkImageInfo::validate() const { | 1307 void SkImageInfo::validate() const { |
| 1308 SkASSERT(fWidth >= 0); | 1308 SkASSERT(fWidth >= 0); |
| 1309 SkASSERT(fHeight >= 0); | 1309 SkASSERT(fHeight >= 0); |
| 1310 SkASSERT(SkColorTypeIsValid(fColorType)); | 1310 SkASSERT(SkColorTypeIsValid(fColorType)); |
| 1311 SkASSERT(SkAlphaTypeIsValid(fAlphaType)); | 1311 SkASSERT(SkAlphaTypeIsValid(fAlphaType)); |
| 1312 } | 1312 } |
| 1313 #endif | 1313 #endif |
| OLD | NEW |