| 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 | 378 |
| 379 // width and height may be larger than rt (if underlying API allows it). | 379 // width and height may be larger than rt (if underlying API allows it). |
| 380 // Returns nullptr if compatible sb could not be created, otherwise the call
er owns the ref on | 380 // Returns nullptr if compatible sb could not be created, otherwise the call
er owns the ref on |
| 381 // the GrStencilAttachment. | 381 // the GrStencilAttachment. |
| 382 virtual GrStencilAttachment* createStencilAttachmentForRenderTarget(const Gr
RenderTarget*, | 382 virtual GrStencilAttachment* createStencilAttachmentForRenderTarget(const Gr
RenderTarget*, |
| 383 int widt
h, | 383 int widt
h, |
| 384 int heig
ht) = 0; | 384 int heig
ht) = 0; |
| 385 // clears target's entire stencil buffer to 0 | 385 // clears target's entire stencil buffer to 0 |
| 386 virtual void clearStencil(GrRenderTarget* target) = 0; | 386 virtual void clearStencil(GrRenderTarget* target) = 0; |
| 387 | 387 |
| 388 // draws an outline rectangle for debugging/visualization purposes. |
| 389 virtual void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) = 0
; |
| 388 | 390 |
| 389 // Determines whether a copy of a texture must be made in order to be compat
ible with | 391 // Determines whether a copy of a texture must be made in order to be compat
ible with |
| 390 // a given GrTextureParams. If so, the width, height and filter used for the
copy are | 392 // a given GrTextureParams. If so, the width, height and filter used for the
copy are |
| 391 // output via the CopyParams. | 393 // output via the CopyParams. |
| 392 bool makeCopyForTextureParams(int width, int height, const GrTextureParams&, | 394 bool makeCopyForTextureParams(int width, int height, const GrTextureParams&, |
| 393 GrTextureProducer::CopyParams*) const; | 395 GrTextureProducer::CopyParams*) const; |
| 394 | 396 |
| 395 // This is only to be used in GL-specific tests. | 397 // This is only to be used in GL-specific tests. |
| 396 virtual const GrGLContext* glContextForTesting() const { return nullptr; } | 398 virtual const GrGLContext* glContextForTesting() const { return nullptr; } |
| 397 | 399 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 ResetTimestamp fResetTi
mestamp; | 503 ResetTimestamp fResetTi
mestamp; |
| 502 uint32_t fResetBi
ts; | 504 uint32_t fResetBi
ts; |
| 503 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. | 505 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. |
| 504 GrContext* fContext
; | 506 GrContext* fContext
; |
| 505 | 507 |
| 506 friend class GrPathRendering; | 508 friend class GrPathRendering; |
| 507 typedef SkRefCnt INHERITED; | 509 typedef SkRefCnt INHERITED; |
| 508 }; | 510 }; |
| 509 | 511 |
| 510 #endif | 512 #endif |
| OLD | NEW |