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

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

Issue 1216243003: Rename flushForExternalRead->flushForExternalIO and always call in SkSurface::getTextureHandle (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 5 years, 5 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 | include/gpu/GrContext.h » ('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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 // DEPRECATED 165 // DEPRECATED
166 GrTexture* getTexture() const; 166 GrTexture* getTexture() const;
167 167
168 /** 168 /**
169 * Returns true if the image is texture backed. 169 * Returns true if the image is texture backed.
170 */ 170 */
171 bool isTextureBacked() const; 171 bool isTextureBacked() const;
172 172
173 /** 173 /**
174 * Retrieves the backend API handle of the texture. If flushPendingGrContex tReads then the 174 * Retrieves the backend API handle of the texture. If flushPendingGrContex tIO then the
175 * GrContext will issue to the backend API any deferred read operations on the texture before 175 * GrContext will issue to the backend API any deferred IO operations on th e texture before
176 * returning. 176 * returning.
177 */ 177 */
178 GrBackendObject getTextureHandle(bool flushPendingGrContextReads) const; 178 GrBackendObject getTextureHandle(bool flushPendingGrContextIO) const;
179 179
180 /** 180 /**
181 * Copy the pixels from the image into the specified buffer (pixels + rowBy tes), 181 * Copy the pixels from the image into the specified buffer (pixels + rowBy tes),
182 * converting them into the requested format (dstInfo). The image pixels ar e read 182 * converting them into the requested format (dstInfo). The image pixels ar e read
183 * starting at the specified (srcX,srcY) location. 183 * starting at the specified (srcX,srcY) location.
184 * 184 *
185 * The specified ImageInfo and (srcX,srcY) offset specifies a source rectan gle 185 * The specified ImageInfo and (srcX,srcY) offset specifies a source rectan gle
186 * 186 *
187 * srcR.setXYWH(srcX, srcY, dstInfo.width(), dstInfo.height()); 187 * srcR.setXYWH(srcX, srcY, dstInfo.width(), dstInfo.height());
188 * 188 *
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 const int fWidth; 270 const int fWidth;
271 const int fHeight; 271 const int fHeight;
272 const uint32_t fUniqueID; 272 const uint32_t fUniqueID;
273 273
274 static uint32_t NextUniqueID(); 274 static uint32_t NextUniqueID();
275 275
276 typedef SkRefCnt INHERITED; 276 typedef SkRefCnt INHERITED;
277 }; 277 };
278 278
279 #endif 279 #endif
OLDNEW
« no previous file with comments | « no previous file | include/gpu/GrContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698