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

Side by Side Diff: src/images/SkImageRef_ashmem.cpp

Issue 112783004: ensure that we call onUnlock only when we onLock succeeded (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: 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
« no previous file with comments | « src/core/SkScaledImageCache.cpp ('k') | src/lazy/SkCachingPixelRef.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1
2 /* 1 /*
3 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
4 * 3 *
5 * 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
6 * found in the LICENSE file. 5 * found in the LICENSE file.
7 */ 6 */
7
8 #include "SkImageRef_ashmem.h" 8 #include "SkImageRef_ashmem.h"
9 #include "SkImageDecoder.h" 9 #include "SkImageDecoder.h"
10 #include "SkFlattenableBuffers.h" 10 #include "SkFlattenableBuffers.h"
11 #include "SkThread.h" 11 #include "SkThread.h"
12 12
13 #include "android/ashmem.h" 13 #include "android/ashmem.h"
14 14
15 #include <sys/mman.h> 15 #include <sys/mman.h>
16 #include <unistd.h> 16 #include <unistd.h>
17 17
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 fRec.fFD = -1; 224 fRec.fFD = -1;
225 fRec.fAddr = NULL; 225 fRec.fAddr = NULL;
226 fRec.fSize = 0; 226 fRec.fSize = 0;
227 fRec.fPinned = false; 227 fRec.fPinned = false;
228 fCT = NULL; 228 fCT = NULL;
229 229
230 SkString uri; 230 SkString uri;
231 buffer.readString(&uri); 231 buffer.readString(&uri);
232 this->setURI(uri); 232 this->setURI(uri);
233 } 233 }
OLDNEW
« no previous file with comments | « src/core/SkScaledImageCache.cpp ('k') | src/lazy/SkCachingPixelRef.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698