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

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

Issue 635333002: Add SkCachedData and use it for SkMipMap (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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/tests.gypi ('k') | src/core/SkBitmapCache.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 SkBitmapCache_DEFINED 8 #ifndef SkBitmapCache_DEFINED
9 #define SkBitmapCache_DEFINED 9 #define SkBitmapCache_DEFINED
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 /** 45 /**
46 * The width and the height of the provided subset must be the same as the r esult bitmap ones. 46 * The width and the height of the provided subset must be the same as the r esult bitmap ones.
47 * result must be marked isImmutable() 47 * result must be marked isImmutable()
48 */ 48 */
49 static bool Add(uint32_t genID, const SkIRect& subset, const SkBitmap& resul t, 49 static bool Add(uint32_t genID, const SkIRect& subset, const SkBitmap& resul t,
50 SkResourceCache* localCache = NULL); 50 SkResourceCache* localCache = NULL);
51 }; 51 };
52 52
53 class SkMipMapCache { 53 class SkMipMapCache {
54 public: 54 public:
55 static const SkMipMap* FindAndRef(const SkBitmap& src); 55 static const SkMipMap* FindAndRef(const SkBitmap& src, SkResourceCache* loca lCache = NULL);
56 static void Add(const SkBitmap& src, const SkMipMap* result); 56 static const SkMipMap* AddAndRef(const SkBitmap& src, SkResourceCache* local Cache = NULL);
57 }; 57 };
58 58
59 #endif 59 #endif
OLDNEW
« no previous file with comments | « gyp/tests.gypi ('k') | src/core/SkBitmapCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698