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

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

Issue 1660393003: Make SkImage::readYUV8Planes const (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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/image/SkImage.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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 SkISize dimensions() const { return SkISize::Make(fWidth, fHeight); } 152 SkISize dimensions() const { return SkISize::Make(fWidth, fHeight); }
153 SkIRect bounds() const { return SkIRect::MakeWH(fWidth, fHeight); } 153 SkIRect bounds() const { return SkIRect::MakeWH(fWidth, fHeight); }
154 uint32_t uniqueID() const { return fUniqueID; } 154 uint32_t uniqueID() const { return fUniqueID; }
155 virtual bool isOpaque() const { return false; } 155 virtual bool isOpaque() const { return false; }
156 156
157 /** 157 /**
158 * Extracts YUV planes from the SkImage and stores them in client-provided m emory. The sizes 158 * Extracts YUV planes from the SkImage and stores them in client-provided m emory. The sizes
159 * planes and rowBytes arrays are ordered [y, u, v]. 159 * planes and rowBytes arrays are ordered [y, u, v].
160 */ 160 */
161 bool readYUV8Planes(const SkISize[3], void* const planes[3], const size_t ro wBytes[3], 161 bool readYUV8Planes(const SkISize[3], void* const planes[3], const size_t ro wBytes[3],
162 SkYUVColorSpace); 162 SkYUVColorSpace) const;
163 163
164 virtual SkShader* newShader(SkShader::TileMode, 164 virtual SkShader* newShader(SkShader::TileMode,
165 SkShader::TileMode, 165 SkShader::TileMode,
166 const SkMatrix* localMatrix = NULL) const; 166 const SkMatrix* localMatrix = NULL) const;
167 167
168 /** 168 /**
169 * If the image has direct access to its pixels (i.e. they are in local 169 * If the image has direct access to its pixels (i.e. they are in local
170 * RAM) return the (const) address of those pixels, and if not null, return 170 * RAM) return the (const) address of those pixels, and if not null, return
171 * the ImageInfo and rowBytes. The returned address is only valid while 171 * the ImageInfo and rowBytes. The returned address is only valid while
172 * the image object is in scope. 172 * the image object is in scope.
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 343
344 private: 344 private:
345 const int fWidth; 345 const int fWidth;
346 const int fHeight; 346 const int fHeight;
347 const uint32_t fUniqueID; 347 const uint32_t fUniqueID;
348 348
349 typedef SkRefCnt INHERITED; 349 typedef SkRefCnt INHERITED;
350 }; 350 };
351 351
352 #endif 352 #endif
OLDNEW
« no previous file with comments | « no previous file | src/image/SkImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698