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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 | 463 |
464 virtual bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int r
eadHeight, | 464 virtual bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int r
eadHeight, |
465 size_t rowBytes, GrPixelConfig readConfig,
DrawPreference*, | 465 size_t rowBytes, GrPixelConfig readConfig,
DrawPreference*, |
466 ReadPixelTempDrawInfo*) = 0; | 466 ReadPixelTempDrawInfo*) = 0; |
467 virtual bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int heig
ht, size_t rowBytes, | 467 virtual bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int heig
ht, size_t rowBytes, |
468 GrPixelConfig srcConfig, DrawPreference*, | 468 GrPixelConfig srcConfig, DrawPreference*, |
469 WritePixelTempDrawInfo*) = 0; | 469 WritePixelTempDrawInfo*) = 0; |
470 | 470 |
471 // overridden by backend-specific derived class to perform the surface read | 471 // overridden by backend-specific derived class to perform the surface read |
472 virtual bool onReadPixels(GrSurface*, | 472 virtual bool onReadPixels(GrSurface*, |
473 int left, int top, int width, int height, | 473 int left, int top, |
| 474 int width, int height, |
474 GrPixelConfig, | 475 GrPixelConfig, |
475 void* buffer, | 476 void* buffer, |
476 size_t rowBytes) = 0; | 477 size_t rowBytes) = 0; |
477 | 478 |
478 // overridden by backend-specific derived class to perform the surface write | 479 // overridden by backend-specific derived class to perform the surface write |
479 virtual bool onWritePixels(GrSurface*, | 480 virtual bool onWritePixels(GrSurface*, |
480 int left, int top, int width, int height, | 481 int left, int top, int width, int height, |
481 GrPixelConfig config, const void* buffer, | 482 GrPixelConfig config, const void* buffer, |
482 size_t rowBytes) = 0; | 483 size_t rowBytes) = 0; |
483 | 484 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 GrTraceMarkerSet fActiveT
raceMarkers; | 518 GrTraceMarkerSet fActiveT
raceMarkers; |
518 GrTraceMarkerSet fStoredT
raceMarkers; | 519 GrTraceMarkerSet fStoredT
raceMarkers; |
519 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. | 520 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. |
520 GrContext* fContext
; | 521 GrContext* fContext
; |
521 | 522 |
522 friend class GrPathRendering; | 523 friend class GrPathRendering; |
523 typedef SkRefCnt INHERITED; | 524 typedef SkRefCnt INHERITED; |
524 }; | 525 }; |
525 | 526 |
526 #endif | 527 #endif |
OLD | NEW |