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

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

Issue 12699002: Upstream changes from Android. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
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 "SkBitmap.h" 10 #include "SkBitmap.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 SkTSwap(fPixelRefOffset, other.fPixelRefOffset); 138 SkTSwap(fPixelRefOffset, other.fPixelRefOffset);
139 SkTSwap(fPixelLockCount, other.fPixelLockCount); 139 SkTSwap(fPixelLockCount, other.fPixelLockCount);
140 SkTSwap(fMipMap, other.fMipMap); 140 SkTSwap(fMipMap, other.fMipMap);
141 SkTSwap(fPixels, other.fPixels); 141 SkTSwap(fPixels, other.fPixels);
142 SkTSwap(fRowBytes, other.fRowBytes); 142 SkTSwap(fRowBytes, other.fRowBytes);
143 SkTSwap(fWidth, other.fWidth); 143 SkTSwap(fWidth, other.fWidth);
144 SkTSwap(fHeight, other.fHeight); 144 SkTSwap(fHeight, other.fHeight);
145 SkTSwap(fConfig, other.fConfig); 145 SkTSwap(fConfig, other.fConfig);
146 SkTSwap(fFlags, other.fFlags); 146 SkTSwap(fFlags, other.fFlags);
147 SkTSwap(fBytesPerPixel, other.fBytesPerPixel); 147 SkTSwap(fBytesPerPixel, other.fBytesPerPixel);
148 #ifdef SK_BUILD_FOR_ANDROID
149 SkTSwap(fHasHardwareMipMap, other.fHasHardwareMipMap);
150 #endif
148 151
149 SkDEBUGCODE(this->validate();) 152 SkDEBUGCODE(this->validate();)
150 } 153 }
151 154
152 void SkBitmap::reset() { 155 void SkBitmap::reset() {
153 this->freePixels(); 156 this->freePixels();
154 sk_bzero(this, sizeof(*this)); 157 sk_bzero(this, sizeof(*this));
155 } 158 }
156 159
157 int SkBitmap::ComputeBytesPerPixel(SkBitmap::Config config) { 160 int SkBitmap::ComputeBytesPerPixel(SkBitmap::Config config) {
(...skipping 1511 matching lines...) Expand 10 before | Expand all | Expand 10 after
1669 if (NULL != uri) { 1672 if (NULL != uri) {
1670 str->appendf(" uri:\"%s\"", uri); 1673 str->appendf(" uri:\"%s\"", uri);
1671 } else { 1674 } else {
1672 str->appendf(" pixelref:%p", pr); 1675 str->appendf(" pixelref:%p", pr);
1673 } 1676 }
1674 } 1677 }
1675 1678
1676 str->append(")"); 1679 str->append(")");
1677 } 1680 }
1678 #endif 1681 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698