OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 GrGpu_DEFINED | 8 #ifndef GrGpu_DEFINED |
9 #define GrGpu_DEFINED | 9 #define GrGpu_DEFINED |
10 | 10 |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 | 190 |
191 /** | 191 /** |
192 * Used to negotiate whether and how an intermediate draw should or must be
performed before | 192 * Used to negotiate whether and how an intermediate draw should or must be
performed before |
193 * a readPixels call. If this returns false then GrGpu could not deduce an i
ntermediate draw | 193 * a readPixels call. If this returns false then GrGpu could not deduce an i
ntermediate draw |
194 * that would allow a successful readPixels call. The passed width, height,
and rowBytes, | 194 * that would allow a successful readPixels call. The passed width, height,
and rowBytes, |
195 * must be non-zero and already reflect clipping to the src bounds. | 195 * must be non-zero and already reflect clipping to the src bounds. |
196 */ | 196 */ |
197 bool getReadPixelsInfo(GrSurface* srcSurface, int readWidth, int readHeight,
size_t rowBytes, | 197 bool getReadPixelsInfo(GrSurface* srcSurface, int readWidth, int readHeight,
size_t rowBytes, |
198 GrPixelConfig readConfig, DrawPreference*, ReadPixelT
empDrawInfo*); | 198 GrPixelConfig readConfig, DrawPreference*, ReadPixelT
empDrawInfo*); |
199 | 199 |
200 /** Info struct returned by getWritePixelsInfo about performing an intermedi
ate draw in order | 200 /** Info struct returned by getWritePixelsInfo about performing an intermedi
ate draw in order |
201 to write pixels to a GrSurface for either performance or correctness rea
sons. */ | 201 to write pixels to a GrSurface for either performance or correctness rea
sons. */ |
202 struct WritePixelTempDrawInfo { | 202 struct WritePixelTempDrawInfo { |
203 /** If the GrGpu is requesting that the caller upload to an intermediate
surface and draw | 203 /** If the GrGpu is requesting that the caller upload to an intermediate
surface and draw |
204 that to the dst then this is the descriptor for the intermediate sur
face. The caller | 204 that to the dst then this is the descriptor for the intermediate sur
face. The caller |
205 should upload the pixels such that the upper left pixel of the uploa
d rect is at 0,0 in | 205 should upload the pixels such that the upper left pixel of the uploa
d rect is at 0,0 in |
206 the intermediate surface.*/ | 206 the intermediate surface.*/ |
207 GrSurfaceDesc fTempSurfaceDesc; | 207 GrSurfaceDesc fTempSurfaceDesc; |
208 /** Swizzle to apply during the draw. This is used to compensate for eit
her feature or | 208 /** Swizzle to apply during the draw. This is used to compensate for eit
her feature or |
209 performance limitations in the underlying 3D API. */ | 209 performance limitations in the underlying 3D API. */ |
210 GrSwizzle fSwizzle; | 210 GrSwizzle fSwizzle; |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 ResetTimestamp fResetTi
mestamp; | 571 ResetTimestamp fResetTi
mestamp; |
572 uint32_t fResetBi
ts; | 572 uint32_t fResetBi
ts; |
573 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. | 573 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. |
574 GrContext* fContext
; | 574 GrContext* fContext
; |
575 | 575 |
576 friend class GrPathRendering; | 576 friend class GrPathRendering; |
577 typedef SkRefCnt INHERITED; | 577 typedef SkRefCnt INHERITED; |
578 }; | 578 }; |
579 | 579 |
580 #endif | 580 #endif |
OLD | NEW |