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

Side by Side Diff: src/codec/SkCodecPriv.h

Issue 1032093004: Use a wrapper for SkDebugf in SkCodec. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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 | « gyp/common_conditions.gypi ('k') | src/codec/SkCodec_libbmp.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 2015 The Android Open Source Project 2 * Copyright 2015 The Android Open Source Project
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 #ifndef SkCodecPriv_DEFINED 8 #ifndef SkCodecPriv_DEFINED
9 #define SkCodecPriv_DEFINED 9 #define SkCodecPriv_DEFINED
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 static inline uint32_t get_int(uint8_t* buffer, uint32_t i) { 98 static inline uint32_t get_int(uint8_t* buffer, uint32_t i) {
99 uint32_t result; 99 uint32_t result;
100 memcpy(&result, &(buffer[i]), 4); 100 memcpy(&result, &(buffer[i]), 4);
101 #ifdef SK_CPU_BENDIAN 101 #ifdef SK_CPU_BENDIAN
102 return SkEndianSwap32(result); 102 return SkEndianSwap32(result);
103 #else 103 #else
104 return result; 104 return result;
105 #endif 105 #endif
106 } 106 }
107 107
108 #ifdef SK_PRINT_CODEC_MESSAGES
109 #define SkCodecPrintf SkDebugf
110 #else
111 #define SkCodecPrintf(...)
112 #endif
113
108 #endif // SkCodecPriv_DEFINED 114 #endif // SkCodecPriv_DEFINED
OLDNEW
« no previous file with comments | « gyp/common_conditions.gypi ('k') | src/codec/SkCodec_libbmp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698