OLD | NEW |
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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 static sk_sp<SkImage> MakeFromYUVTexturesCopy(GrContext*, SkYUVColorSpace, | 136 static sk_sp<SkImage> MakeFromYUVTexturesCopy(GrContext*, SkYUVColorSpace, |
137 const GrBackendObject yuvTextu
reHandles[3], | 137 const GrBackendObject yuvTextu
reHandles[3], |
138 const SkISize yuvSizes[3], | 138 const SkISize yuvSizes[3], |
139 GrSurfaceOrigin); | 139 GrSurfaceOrigin); |
140 | 140 |
141 static sk_sp<SkImage> MakeFromPicture(sk_sp<SkPicture>, const SkISize& dimen
sions, | 141 static sk_sp<SkImage> MakeFromPicture(sk_sp<SkPicture>, const SkISize& dimen
sions, |
142 const SkMatrix*, const SkPaint*); | 142 const SkMatrix*, const SkPaint*); |
143 | 143 |
144 static sk_sp<SkImage> MakeTextureFromPixmap(GrContext*, const SkPixmap&, SkB
udgeted budgeted); | 144 static sk_sp<SkImage> MakeTextureFromPixmap(GrContext*, const SkPixmap&, SkB
udgeted budgeted); |
145 | 145 |
| 146 static sk_sp<SkImage> MakeTextureFromMipMap(GrContext*, const SkImageInfo&, |
| 147 const GrMipLevel* texels, int mi
pLevelCount, |
| 148 SkBudgeted); |
| 149 |
146 ////////////////////////////////////////////////////////////////////////////
/////////////////// | 150 ////////////////////////////////////////////////////////////////////////////
/////////////////// |
147 | 151 |
148 int width() const { return fWidth; } | 152 int width() const { return fWidth; } |
149 int height() const { return fHeight; } | 153 int height() const { return fHeight; } |
150 SkISize dimensions() const { return SkISize::Make(fWidth, fHeight); } | 154 SkISize dimensions() const { return SkISize::Make(fWidth, fHeight); } |
151 SkIRect bounds() const { return SkIRect::MakeWH(fWidth, fHeight); } | 155 SkIRect bounds() const { return SkIRect::MakeWH(fWidth, fHeight); } |
152 uint32_t uniqueID() const { return fUniqueID; } | 156 uint32_t uniqueID() const { return fUniqueID; } |
153 virtual bool isOpaque() const { return false; } | 157 virtual bool isOpaque() const { return false; } |
154 | 158 |
155 /** | 159 /** |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 | 448 |
445 private: | 449 private: |
446 const int fWidth; | 450 const int fWidth; |
447 const int fHeight; | 451 const int fHeight; |
448 const uint32_t fUniqueID; | 452 const uint32_t fUniqueID; |
449 | 453 |
450 typedef SkRefCnt INHERITED; | 454 typedef SkRefCnt INHERITED; |
451 }; | 455 }; |
452 | 456 |
453 #endif | 457 #endif |
OLD | NEW |