| 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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 | 358 |
| 359 virtual void draw(const GrOptDrawState&, const GrDrawTarget::DrawInfo&); | 359 virtual void draw(const GrOptDrawState&, const GrDrawTarget::DrawInfo&); |
| 360 virtual void stencilPath(const GrOptDrawState&, | 360 virtual void stencilPath(const GrOptDrawState&, |
| 361 const GrPath*, | 361 const GrPath*, |
| 362 const GrStencilSettings&); | 362 const GrStencilSettings&); |
| 363 virtual void drawPath(const GrOptDrawState&, | 363 virtual void drawPath(const GrOptDrawState&, |
| 364 const GrPath*, | 364 const GrPath*, |
| 365 const GrStencilSettings&); | 365 const GrStencilSettings&); |
| 366 virtual void drawPaths(const GrOptDrawState&, | 366 virtual void drawPaths(const GrOptDrawState&, |
| 367 const GrPathRange*, | 367 const GrPathRange*, |
| 368 const uint32_t indices[], | 368 const void* indices, |
| 369 GrDrawTarget::PathIndexType, |
| 370 const float transformValues[], |
| 371 GrDrawTarget::PathTransformType, |
| 369 int count, | 372 int count, |
| 370 const float transforms[], | |
| 371 GrDrawTarget::PathTransformType, | |
| 372 const GrStencilSettings&); | 373 const GrStencilSettings&); |
| 373 | 374 |
| 374 static DrawType PrimTypeToDrawType(GrPrimitiveType type) { | 375 static DrawType PrimTypeToDrawType(GrPrimitiveType type) { |
| 375 switch (type) { | 376 switch (type) { |
| 376 case kTriangles_GrPrimitiveType: | 377 case kTriangles_GrPrimitiveType: |
| 377 case kTriangleStrip_GrPrimitiveType: | 378 case kTriangleStrip_GrPrimitiveType: |
| 378 case kTriangleFan_GrPrimitiveType: | 379 case kTriangleFan_GrPrimitiveType: |
| 379 return kDrawTriangles_DrawType; | 380 return kDrawTriangles_DrawType; |
| 380 case kPoints_GrPrimitiveType: | 381 case kPoints_GrPrimitiveType: |
| 381 return kDrawPoints_DrawType; | 382 return kDrawPoints_DrawType; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 int fGpuTrac
eMarkerCount; | 499 int fGpuTrac
eMarkerCount; |
| 499 GrTraceMarkerSet fActiveT
raceMarkers; | 500 GrTraceMarkerSet fActiveT
raceMarkers; |
| 500 GrTraceMarkerSet fStoredT
raceMarkers; | 501 GrTraceMarkerSet fStoredT
raceMarkers; |
| 501 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. | 502 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. |
| 502 GrContext* fContext
; | 503 GrContext* fContext
; |
| 503 | 504 |
| 504 typedef SkRefCnt INHERITED; | 505 typedef SkRefCnt INHERITED; |
| 505 }; | 506 }; |
| 506 | 507 |
| 507 #endif | 508 #endif |
| OLD | NEW |