| 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 GrContext_DEFINED | 8 #ifndef GrContext_DEFINED |
| 9 #define GrContext_DEFINED | 9 #define GrContext_DEFINED |
| 10 | 10 |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 return this->copySurface(dst, src, SkIRect::MakeWH(dst->width(), dst->he
ight()), | 300 return this->copySurface(dst, src, SkIRect::MakeWH(dst->width(), dst->he
ight()), |
| 301 SkIPoint::Make(0,0)); | 301 SkIPoint::Make(0,0)); |
| 302 } | 302 } |
| 303 | 303 |
| 304 /** | 304 /** |
| 305 * After this returns any pending writes to the surface will have been issue
d to the backend 3D API. | 305 * After this returns any pending writes to the surface will have been issue
d to the backend 3D API. |
| 306 */ | 306 */ |
| 307 void flushSurfaceWrites(GrSurface* surface); | 307 void flushSurfaceWrites(GrSurface* surface); |
| 308 | 308 |
| 309 /** | 309 /** |
| 310 * After this returns any pending reads or writes to the surface will have b
een issued to the |
| 311 * backend 3D API. |
| 312 */ |
| 313 void flushSurfaceIO(GrSurface* surface); |
| 314 |
| 315 /** |
| 310 * Finalizes all pending reads and writes to the surface and also performs a
n MSAA resolve | 316 * Finalizes all pending reads and writes to the surface and also performs a
n MSAA resolve |
| 311 * if necessary. | 317 * if necessary. |
| 312 * | 318 * |
| 313 * It is not necessary to call this before reading the render target via Ski
a/GrContext. | 319 * It is not necessary to call this before reading the render target via Ski
a/GrContext. |
| 314 * GrContext will detect when it must perform a resolve before reading pixel
s back from the | 320 * GrContext will detect when it must perform a resolve before reading pixel
s back from the |
| 315 * surface or using it as a texture. | 321 * surface or using it as a texture. |
| 316 */ | 322 */ |
| 317 void prepareSurfaceForExternalIO(GrSurface*); | 323 void prepareSurfaceForExternalIO(GrSurface*); |
| 318 | 324 |
| 319 /** | 325 /** |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 SkAutoTUnref<const GrCaps> fCaps; | 487 SkAutoTUnref<const GrCaps> fCaps; |
| 482 uint32_t fContextUniqueID; | 488 uint32_t fContextUniqueID; |
| 483 | 489 |
| 484 friend class GrContext; | 490 friend class GrContext; |
| 485 friend class SkImage; | 491 friend class SkImage; |
| 486 | 492 |
| 487 typedef SkRefCnt INHERITED; | 493 typedef SkRefCnt INHERITED; |
| 488 }; | 494 }; |
| 489 | 495 |
| 490 #endif | 496 #endif |
| OLD | NEW |