OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2007 The Android Open Source Project | 3 * Copyright 2007 The Android Open Source Project |
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 | 9 |
10 #include "SkPictureFlat.h" | 10 #include "SkPictureFlat.h" |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 } | 274 } |
275 | 275 |
276 const SkPicture::OperationList& SkPicture::EXPERIMENTAL_getActiveOps(const SkIRe
ct& queryRect) { | 276 const SkPicture::OperationList& SkPicture::EXPERIMENTAL_getActiveOps(const SkIRe
ct& queryRect) { |
277 this->endRecording(); | 277 this->endRecording(); |
278 if (NULL != fPlayback) { | 278 if (NULL != fPlayback) { |
279 return fPlayback->getActiveOps(queryRect); | 279 return fPlayback->getActiveOps(queryRect); |
280 } | 280 } |
281 return OperationList::InvalidList(); | 281 return OperationList::InvalidList(); |
282 } | 282 } |
283 | 283 |
| 284 size_t SkPicture::EXPERIMENTAL_curOpID() const { |
| 285 if (NULL != fPlayback) { |
| 286 return fPlayback->curOpID(); |
| 287 } |
| 288 return 0; |
| 289 } |
| 290 |
284 void SkPicture::draw(SkCanvas* surface, SkDrawPictureCallback* callback) { | 291 void SkPicture::draw(SkCanvas* surface, SkDrawPictureCallback* callback) { |
285 this->endRecording(); | 292 this->endRecording(); |
286 if (NULL != fPlayback) { | 293 if (NULL != fPlayback) { |
287 fPlayback->draw(*surface, callback); | 294 fPlayback->draw(*surface, callback); |
288 } | 295 } |
289 } | 296 } |
290 | 297 |
291 /////////////////////////////////////////////////////////////////////////////// | 298 /////////////////////////////////////////////////////////////////////////////// |
292 | 299 |
293 #include "SkStream.h" | 300 #include "SkStream.h" |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 } | 473 } |
467 | 474 |
468 #ifdef SK_BUILD_FOR_ANDROID | 475 #ifdef SK_BUILD_FOR_ANDROID |
469 void SkPicture::abortPlayback() { | 476 void SkPicture::abortPlayback() { |
470 if (NULL == fPlayback) { | 477 if (NULL == fPlayback) { |
471 return; | 478 return; |
472 } | 479 } |
473 fPlayback->abort(); | 480 fPlayback->abort(); |
474 } | 481 } |
475 #endif | 482 #endif |
OLD | NEW |