| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 163 |
| 164 /** Info struct returned by getReadPixelsInfo about performing intermediate
draws before | 164 /** Info struct returned by getReadPixelsInfo about performing intermediate
draws before |
| 165 reading pixels for performance or correctness. */ | 165 reading pixels for performance or correctness. */ |
| 166 struct ReadPixelTempDrawInfo { | 166 struct ReadPixelTempDrawInfo { |
| 167 /** If the GrGpu is requesting that the caller do a draw to an intermedi
ate surface then | 167 /** If the GrGpu is requesting that the caller do a draw to an intermedi
ate surface then |
| 168 this is descriptor for the temp surface. The draw should always be a
rect with | 168 this is descriptor for the temp surface. The draw should always be a
rect with |
| 169 dst 0,0,w,h. */ | 169 dst 0,0,w,h. */ |
| 170 GrSurfaceDesc fTempSurfaceDesc; | 170 GrSurfaceDesc fTempSurfaceDesc; |
| 171 /** Indicates whether there is a performance advantage to using an exact
match texture | 171 /** Indicates whether there is a performance advantage to using an exact
match texture |
| 172 (in terms of width and height) for the intermediate texture instead
of approximate. */ | 172 (in terms of width and height) for the intermediate texture instead
of approximate. */ |
| 173 bool fUseExactScratch; | 173 SkBackingFit fTempSurfaceFit; |
| 174 /** Swizzle to apply during the draw. This is used to compensate for eit
her feature or | 174 /** Swizzle to apply during the draw. This is used to compensate for eit
her feature or |
| 175 performance limitations in the underlying 3D API. */ | 175 performance limitations in the underlying 3D API. */ |
| 176 GrSwizzle fSwizzle; | 176 GrSwizzle fSwizzle; |
| 177 /** The config that should be used to read from the temp surface after t
he draw. This may be | 177 /** The config that should be used to read from the temp surface after t
he draw. This may be |
| 178 different than the original read config in order to compensate for s
wizzling. The | 178 different than the original read config in order to compensate for s
wizzling. The |
| 179 read data will effectively be in the original read config. */ | 179 read data will effectively be in the original read config. */ |
| 180 GrPixelConfig fReadConfig; | 180 GrPixelConfig fReadConfig; |
| 181 }; | 181 }; |
| 182 | 182 |
| 183 /** Describes why an intermediate draw must/should be performed before readP
ixels. */ | 183 /** Describes why an intermediate draw must/should be performed before readP
ixels. */ |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 SkSTArray<1, MultisampleSpecs, true> fMultisampleSpecs; | 598 SkSTArray<1, MultisampleSpecs, true> fMultisampleSpecs; |
| 599 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. | 599 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. |
| 600 GrContext* fContext; | 600 GrContext* fContext; |
| 601 | 601 |
| 602 friend class GrPathRendering; | 602 friend class GrPathRendering; |
| 603 friend class gr_instanced::InstancedRendering; | 603 friend class gr_instanced::InstancedRendering; |
| 604 typedef SkRefCnt INHERITED; | 604 typedef SkRefCnt INHERITED; |
| 605 }; | 605 }; |
| 606 | 606 |
| 607 #endif | 607 #endif |
| OLD | NEW |