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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 // Can't make it closed in the self-read case | 86 // Can't make it closed in the self-read case |
87 dt->makeClosed(); | 87 dt->makeClosed(); |
88 } | 88 } |
89 } | 89 } |
90 } | 90 } |
91 | 91 |
92 #ifdef SK_DEBUG | 92 #ifdef SK_DEBUG |
93 void GrDrawTarget::dump() const { | 93 void GrDrawTarget::dump() const { |
94 SkDebugf("--------------------------------------------------------------\n")
; | 94 SkDebugf("--------------------------------------------------------------\n")
; |
95 SkDebugf("node: %d\n"); | 95 SkDebugf("node: %d -> RT: %d\n", fDebugID, fRenderTarget ? fRenderTarget->ge
tUniqueID() : -1); |
96 SkDebugf("relies On (%d): ", fDependencies.count()); | 96 SkDebugf("relies On (%d): ", fDependencies.count()); |
97 for (int i = 0; i < fDependencies.count(); ++i) { | 97 for (int i = 0; i < fDependencies.count(); ++i) { |
98 SkDebugf("%d, ", fDependencies[i]->fDebugID); | 98 SkDebugf("%d, ", fDependencies[i]->fDebugID); |
99 } | 99 } |
100 SkDebugf("\n"); | 100 SkDebugf("\n"); |
101 SkDebugf("batches (%d):\n", fBatches.count()); | 101 SkDebugf("batches (%d):\n", fBatches.count()); |
102 for (int i = 0; i < fBatches.count(); ++i) { | 102 for (int i = 0; i < fBatches.count(); ++i) { |
103 #if 0 | 103 #if 0 |
104 SkDebugf("*******************************\n"); | 104 SkDebugf("*******************************\n"); |
105 #endif | 105 #endif |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 } | 547 } |
548 | 548 |
549 return true; | 549 return true; |
550 } | 550 } |
551 | 551 |
552 void GrDrawTarget::clearStencilClip(const SkIRect& rect, bool insideClip, GrRend
erTarget* rt) { | 552 void GrDrawTarget::clearStencilClip(const SkIRect& rect, bool insideClip, GrRend
erTarget* rt) { |
553 GrBatch* batch = new GrClearStencilClipBatch(rect, insideClip, rt); | 553 GrBatch* batch = new GrClearStencilClipBatch(rect, insideClip, rt); |
554 this->recordBatch(batch); | 554 this->recordBatch(batch); |
555 batch->unref(); | 555 batch->unref(); |
556 } | 556 } |
OLD | NEW |