| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #include "GrDrawTarget.h" | 9 #include "GrDrawTarget.h" |
| 10 | 10 |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 ars, | 525 ars, |
| 526 scissorState, | 526 scissorState, |
| 527 devBounds); | 527 devBounds); |
| 528 } | 528 } |
| 529 | 529 |
| 530 void GrClipTarget::purgeResources() { | 530 void GrClipTarget::purgeResources() { |
| 531 // The clip mask manager can rebuild all its clip masks so just | 531 // The clip mask manager can rebuild all its clip masks so just |
| 532 // get rid of them all. | 532 // get rid of them all. |
| 533 fClipMaskManager->purgeResources(); | 533 fClipMaskManager->purgeResources(); |
| 534 }; | 534 }; |
| 535 |
| 536 void GrClipTarget::clearStencilClip(const SkIRect& rect, bool insideClip, GrRend
erTarget* rt) { |
| 537 GrBatch* batch = SkNEW_ARGS(GrClearStencilClipBatch, (rect, insideClip, rt))
; |
| 538 this->onDrawBatch(batch); |
| 539 batch->unref(); |
| 540 } |
| OLD | NEW |