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

Side by Side Diff: include/core/SkImage.h

Issue 54203006: Break up SkLazyPixelRef functionally into class hierarchy. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: last change Created 7 years, 1 month 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/core/SkBitmap.h ('k') | src/core/SkBitmap.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 2012 Google Inc. 2 * Copyright 2012 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 SkImage_DEFINED 8 #ifndef SkImage_DEFINED
9 #define SkImage_DEFINED 9 #define SkImage_DEFINED
10 10
(...skipping 29 matching lines...) Expand all
40 kLastEnum_SkColorType = kBGRA_8888_SkColorType 40 kLastEnum_SkColorType = kBGRA_8888_SkColorType
41 }; 41 };
42 42
43 struct SkImageInfo { 43 struct SkImageInfo {
44 int fWidth; 44 int fWidth;
45 int fHeight; 45 int fHeight;
46 SkColorType fColorType; 46 SkColorType fColorType;
47 SkAlphaType fAlphaType; 47 SkAlphaType fAlphaType;
48 }; 48 };
49 49
50 bool operator==(const SkImageInfo& lhs, const SkImageInfo& rhs);
51 bool operator!=(const SkImageInfo& lhs, const SkImageInfo& rhs);
52
50 /** 53 /**
51 * SkImage is an abstraction for drawing a rectagle of pixels, though the 54 * SkImage is an abstraction for drawing a rectagle of pixels, though the
52 * particular type of image could be actually storing its data on the GPU, or 55 * particular type of image could be actually storing its data on the GPU, or
53 * as drawing commands (picture or PDF or otherwise), ready to be played back 56 * as drawing commands (picture or PDF or otherwise), ready to be played back
54 * into another canvas. 57 * into another canvas.
55 * 58 *
56 * The content of SkImage is always immutable, though the actual storage may 59 * The content of SkImage is always immutable, though the actual storage may
57 * change, if for example that image can be re-created via encoded data or 60 * change, if for example that image can be re-created via encoded data or
58 * other means. 61 * other means.
59 */ 62 */
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 const int fWidth; 146 const int fWidth;
144 const int fHeight; 147 const int fHeight;
145 const uint32_t fUniqueID; 148 const uint32_t fUniqueID;
146 149
147 static uint32_t NextUniqueID(); 150 static uint32_t NextUniqueID();
148 151
149 typedef SkRefCnt INHERITED; 152 typedef SkRefCnt INHERITED;
150 }; 153 };
151 154
152 #endif 155 #endif
OLDNEW
« no previous file with comments | « include/core/SkBitmap.h ('k') | src/core/SkBitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698