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

Side by Side Diff: src/lazy/SkDiscardablePixelRef.h

Issue 295243006: hide discardable factory from public imagegenerator api (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 7 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 * Copyright 2013 Google Inc. 2 * Copyright 2013 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 SkDiscardablePixelRef_DEFINED 8 #ifndef SkDiscardablePixelRef_DEFINED
9 #define SkDiscardablePixelRef_DEFINED 9 #define SkDiscardablePixelRef_DEFINED
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // These const members should not change over the life of the 45 // These const members should not change over the life of the
46 // PixelRef, since the SkBitmap doesn't expect them to change. 46 // PixelRef, since the SkBitmap doesn't expect them to change.
47 47
48 SkDiscardableMemory* fDiscardableMemory; 48 SkDiscardableMemory* fDiscardableMemory;
49 49
50 /* Takes ownership of SkImageGenerator. */ 50 /* Takes ownership of SkImageGenerator. */
51 SkDiscardablePixelRef(const SkImageInfo&, SkImageGenerator*, 51 SkDiscardablePixelRef(const SkImageInfo&, SkImageGenerator*,
52 size_t rowBytes, 52 size_t rowBytes,
53 SkDiscardableMemory::Factory* factory); 53 SkDiscardableMemory::Factory* factory);
54 54
55 friend bool SkInstallDiscardablePixelRef(SkImageGenerator*, 55 friend bool SkInstallDiscardablePixelRef(SkImageGenerator*, SkBitmap*,
56 SkBitmap*,
57 SkDiscardableMemory::Factory*); 56 SkDiscardableMemory::Factory*);
58 57
59 typedef SkPixelRef INHERITED; 58 typedef SkPixelRef INHERITED;
60 }; 59 };
61 60
62 #endif // SkDiscardablePixelRef_DEFINED 61 #endif // SkDiscardablePixelRef_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698