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

Side by Side Diff: src/core/SkCachedData.h

Issue 1265033002: IWYU: 'core' target, files starting A-C. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase (a file was deleted). Created 5 years, 4 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/SkBuffer.cpp ('k') | src/core/SkCachedData.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 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
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 SkCachedData_DEFINED 8 #ifndef SkCachedData_DEFINED
9 #define SkCachedData_DEFINED 9 #define SkCachedData_DEFINED
10 10
11 #include "SkMutex.h" 11 #include "SkMutex.h"
12 #include "SkTypes.h"
12 13
13 class SkDiscardableMemory; 14 class SkDiscardableMemory;
14 15
15 class SkCachedData : ::SkNoncopyable { 16 class SkCachedData : ::SkNoncopyable {
16 public: 17 public:
17 SkCachedData(void* mallocData, size_t size); 18 SkCachedData(void* mallocData, size_t size);
18 SkCachedData(size_t size, SkDiscardableMemory*); 19 SkCachedData(size_t size, SkDiscardableMemory*);
19 virtual ~SkCachedData(); 20 virtual ~SkCachedData();
20 21
21 size_t size() const { return fSize; } 22 size_t size() const { return fSize; }
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 void attachToCacheAndRef() const { this->internalRef(true); } 99 void attachToCacheAndRef() const { this->internalRef(true); }
99 100
100 /* 101 /*
101 * Call when removing this instance from a SkResourceCache::Rec subclass 102 * Call when removing this instance from a SkResourceCache::Rec subclass
102 * (typically in the Rec's destructor). 103 * (typically in the Rec's destructor).
103 */ 104 */
104 void detachFromCacheAndUnref() const { this->internalUnref(true); } 105 void detachFromCacheAndUnref() const { this->internalUnref(true); }
105 }; 106 };
106 107
107 #endif 108 #endif
OLDNEW
« no previous file with comments | « src/core/SkBuffer.cpp ('k') | src/core/SkCachedData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698