Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: src/core/SkPicture.cpp

Issue 206853003: Add new experimental API to SkPicture to get "id" of current op (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/core/SkPicture.h ('k') | src/core/SkPicturePlayback.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « include/core/SkPicture.h ('k') | src/core/SkPicturePlayback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698