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

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

Issue 1214603003: Revert of Remove SkThread.h, include SkMutex.h or SkAtomics.h as appropriate. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 5 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/SkAAClip.cpp ('k') | src/core/SkBitmapHeap.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 /* 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
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
OLDNEW
« no previous file with comments | « src/core/SkAAClip.cpp ('k') | src/core/SkBitmapHeap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698