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

Side by Side Diff: include/images/SkImageRef_GlobalPool.h

Issue 112963003: Revert "Revert of https://codereview.chromium.org/108773003/" (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 | « include/images/SkImageRef.h ('k') | samplecode/SamplePicture.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 /* 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 #ifndef SkImageRef_GlobalPool_DEFINED 10 #ifndef SkImageRef_GlobalPool_DEFINED
11 #define SkImageRef_GlobalPool_DEFINED 11 #define SkImageRef_GlobalPool_DEFINED
12 12
13 #include "SkImageRef.h" 13 #include "SkImageRef.h"
14 14
15 class SkImageRef_GlobalPool : public SkImageRef { 15 class SkImageRef_GlobalPool : public SkImageRef {
16 public: 16 public:
17 // if pool is null, use the global pool 17 // if pool is null, use the global pool
18 SkImageRef_GlobalPool(SkStreamRewindable*, SkBitmap::Config, 18 SkImageRef_GlobalPool(const SkImageInfo&, SkStreamRewindable*,
19 int sampleSize = 1); 19 int sampleSize = 1);
20 virtual ~SkImageRef_GlobalPool(); 20 virtual ~SkImageRef_GlobalPool();
21 21
22 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkImageRef_GlobalPool) 22 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkImageRef_GlobalPool)
23 23
24 // API to control the global pool 24 // API to control the global pool
25 25
26 /** Return the amount specified as the budget for the cache (in bytes). 26 /** Return the amount specified as the budget for the cache (in bytes).
27 */ 27 */
28 static size_t GetRAMBudget(); 28 static size_t GetRAMBudget();
(...skipping 24 matching lines...) Expand all
53 53
54 virtual void onUnlockPixels(); 54 virtual void onUnlockPixels();
55 55
56 SkImageRef_GlobalPool(SkFlattenableReadBuffer&); 56 SkImageRef_GlobalPool(SkFlattenableReadBuffer&);
57 57
58 private: 58 private:
59 typedef SkImageRef INHERITED; 59 typedef SkImageRef INHERITED;
60 }; 60 };
61 61
62 #endif 62 #endif
OLDNEW
« no previous file with comments | « include/images/SkImageRef.h ('k') | samplecode/SamplePicture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698