| 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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 bool canCopySurface(GrSurface* dst, | 465 bool canCopySurface(GrSurface* dst, |
| 466 GrSurface* src, | 466 GrSurface* src, |
| 467 const SkIRect& srcRect, | 467 const SkIRect& srcRect, |
| 468 const SkIPoint& dstPoint); | 468 const SkIPoint& dstPoint); |
| 469 | 469 |
| 470 /** | 470 /** |
| 471 * This is can be called before allocating a texture to be a dst for copySur
face. It will | 471 * This is can be called before allocating a texture to be a dst for copySur
face. It will |
| 472 * populate the origin, config, and flags fields of the desc such that copyS
urface is more | 472 * populate the origin, config, and flags fields of the desc such that copyS
urface is more |
| 473 * likely to succeed and be efficient. | 473 * likely to succeed and be efficient. |
| 474 */ | 474 */ |
| 475 virtual void initCopySurfaceDstDesc(const GrSurface* src, GrTextureDesc* des
c); | 475 virtual void initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* des
c); |
| 476 | 476 |
| 477 | 477 |
| 478 /** | 478 /** |
| 479 * Release any resources that are cached but not currently in use. This | 479 * Release any resources that are cached but not currently in use. This |
| 480 * is intended to give an application some recourse when resources are low. | 480 * is intended to give an application some recourse when resources are low. |
| 481 */ | 481 */ |
| 482 virtual void purgeResources() {}; | 482 virtual void purgeResources() {}; |
| 483 | 483 |
| 484 /** | 484 /** |
| 485 * For subclass internal use to invoke a call to onDraw(). See DrawInfo belo
w. | 485 * For subclass internal use to invoke a call to onDraw(). See DrawInfo belo
w. |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 943 GrContext* fContext; | 943 GrContext* fContext; |
| 944 // To keep track that we always have at least as many debug marker adds as r
emoves | 944 // To keep track that we always have at least as many debug marker adds as r
emoves |
| 945 int fGpuTraceMar
kerCount; | 945 int fGpuTraceMar
kerCount; |
| 946 GrTraceMarkerSet fActiveTrace
Markers; | 946 GrTraceMarkerSet fActiveTrace
Markers; |
| 947 GrTraceMarkerSet fStoredTrace
Markers; | 947 GrTraceMarkerSet fStoredTrace
Markers; |
| 948 | 948 |
| 949 typedef SkRefCnt INHERITED; | 949 typedef SkRefCnt INHERITED; |
| 950 }; | 950 }; |
| 951 | 951 |
| 952 #endif | 952 #endif |
| OLD | NEW |