| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 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 GrDrawTarget_DEFINED | 8 #ifndef GrDrawTarget_DEFINED |
| 9 #define GrDrawTarget_DEFINED | 9 #define GrDrawTarget_DEFINED |
| 10 | 10 |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 | 323 |
| 324 /** | 324 /** |
| 325 * Draws many paths. It will respect the HW | 325 * Draws many paths. It will respect the HW |
| 326 * antialias flag on the draw state (if possible in the 3D API). | 326 * antialias flag on the draw state (if possible in the 3D API). |
| 327 * | 327 * |
| 328 * @param pathRange Source of paths to draw from | 328 * @param pathRange Source of paths to draw from |
| 329 * @param indices Array of indices into the the pathRange | 329 * @param indices Array of indices into the the pathRange |
| 330 * @param count Number of paths to draw (length of indices array) | 330 * @param count Number of paths to draw (length of indices array) |
| 331 * @param transforms Array of individual transforms, one for each path | 331 * @param transforms Array of individual transforms, one for each path |
| 332 * @param transformsType Type of transformations in the array. Array contai
ns | 332 * @param transformsType Type of transformations in the array. Array contai
ns |
| 333 PathTransformSize(transformsType) × count elements | 333 PathTransformSize(transformsType) * count elements |
| 334 * @param fill Fill type for drawing all the paths | 334 * @param fill Fill type for drawing all the paths |
| 335 */ | 335 */ |
| 336 enum PathTransformType { | 336 enum PathTransformType { |
| 337 kNone_PathTransformType, //!< [] | 337 kNone_PathTransformType, //!< [] |
| 338 kTranslateX_PathTransformType, //!< [kMTransX] | 338 kTranslateX_PathTransformType, //!< [kMTransX] |
| 339 kTranslateY_PathTransformType, //!< [kMTransY] | 339 kTranslateY_PathTransformType, //!< [kMTransY] |
| 340 kTranslate_PathTransformType, //!< [kMTransX, kMTransY] | 340 kTranslate_PathTransformType, //!< [kMTransX, kMTransY] |
| 341 kAffine_PathTransformType, //!< [kMScaleX, kMSkewX, kMTransX, kMSke
wY, kMScaleY, kMTransY] | 341 kAffine_PathTransformType, //!< [kMScaleX, kMSkewX, kMTransX, kMSke
wY, kMScaleY, kMTransY] |
| 342 | 342 |
| 343 kLast_PathTransformType = kAffine_PathTransformType | 343 kLast_PathTransformType = kAffine_PathTransformType |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 953 GrContext* fContext; | 953 GrContext* fContext; |
| 954 // To keep track that we always have at least as many debug marker adds as r
emoves | 954 // To keep track that we always have at least as many debug marker adds as r
emoves |
| 955 int fGpuTraceMar
kerCount; | 955 int fGpuTraceMar
kerCount; |
| 956 GrTraceMarkerSet fActiveTrace
Markers; | 956 GrTraceMarkerSet fActiveTrace
Markers; |
| 957 GrTraceMarkerSet fStoredTrace
Markers; | 957 GrTraceMarkerSet fStoredTrace
Markers; |
| 958 | 958 |
| 959 typedef SkRefCnt INHERITED; | 959 typedef SkRefCnt INHERITED; |
| 960 }; | 960 }; |
| 961 | 961 |
| 962 #endif | 962 #endif |
| OLD | NEW |