| 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 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 /** | 542 /** |
| 543 * For subclass internal use to invoke a call to onDrawPaths(). | 543 * For subclass internal use to invoke a call to onDrawPaths(). |
| 544 */ | 544 */ |
| 545 void executeDrawPaths(const GrPathRange* pathRange, | 545 void executeDrawPaths(const GrPathRange* pathRange, |
| 546 const uint32_t indices[], int count, | 546 const uint32_t indices[], int count, |
| 547 const float transforms[], PathTransformType transforms
Type, | 547 const float transforms[], PathTransformType transforms
Type, |
| 548 SkPath::FillType fill, | 548 SkPath::FillType fill, |
| 549 const GrDeviceCoordTexture* dstCopy) { | 549 const GrDeviceCoordTexture* dstCopy) { |
| 550 this->onDrawPaths(pathRange, indices, count, transforms, transformsType,
fill, dstCopy); | 550 this->onDrawPaths(pathRange, indices, count, transforms, transformsType,
fill, dstCopy); |
| 551 } | 551 } |
| 552 | |
| 553 inline bool isGpuTracingEnabled() const { | |
| 554 return this->getContext()->isGpuTracingEnabled(); | |
| 555 } | |
| 556 | |
| 557 //////////////////////////////////////////////////////////////////////////// | 552 //////////////////////////////////////////////////////////////////////////// |
| 558 | 553 |
| 559 /** | 554 /** |
| 560 * See AutoStateRestore below. | 555 * See AutoStateRestore below. |
| 561 */ | 556 */ |
| 562 enum ASRInit { | 557 enum ASRInit { |
| 563 kPreserve_ASRInit, | 558 kPreserve_ASRInit, |
| 564 kReset_ASRInit | 559 kReset_ASRInit |
| 565 }; | 560 }; |
| 566 | 561 |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 980 GrContext* fContext; | 975 GrContext* fContext; |
| 981 // To keep track that we always have at least as many debug marker adds as r
emoves | 976 // To keep track that we always have at least as many debug marker adds as r
emoves |
| 982 int fGpuTraceMar
kerCount; | 977 int fGpuTraceMar
kerCount; |
| 983 GrTraceMarkerSet fActiveTrace
Markers; | 978 GrTraceMarkerSet fActiveTrace
Markers; |
| 984 GrTraceMarkerSet fStoredTrace
Markers; | 979 GrTraceMarkerSet fStoredTrace
Markers; |
| 985 | 980 |
| 986 typedef SkRefCnt INHERITED; | 981 typedef SkRefCnt INHERITED; |
| 987 }; | 982 }; |
| 988 | 983 |
| 989 #endif | 984 #endif |
| OLD | NEW |