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

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

Issue 2031273002: Plumbing mipmaps to the point of creation. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Adding definition for non-gpu SkImage. Created 4 years, 6 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 | « no previous file | src/gpu/SkGr.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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
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&,
bsalomon 2016/06/03 14:41:52 Do we need this in the public API? If it is only c
reed1 2016/06/03 15:59:47 +1 to privatization. BTW -- (other) Brian and I h
cblume 2016/06/03 16:22:40 Done.
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
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
OLDNEW
« no previous file with comments | « no previous file | src/gpu/SkGr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698