diff options
author | 2012-10-01 15:27:14 +0000 | |
---|---|---|
committer | 2012-10-01 15:27:14 +0000 | |
commit | 52a00cac514dfd9cedb85a9c3e92fdb3e32a03f7 (patch) | |
tree | cbcaef014f7d2da380dc58936f30f65dd4075c0c /src/utils | |
parent | dde646afb522ac46d6917ada7c404d91da860bb0 (diff) |
Adding virtual method to SkDeferredCanvas::NotificationClient for signaling when commands are skipped due to the skip on clear optimization.
TEST=DeferredCanvas unit test
BUG=http://code.google.com/p/chromium/issues/detail?id=116840
Review URL: https://codereview.appspot.com/6590050
git-svn-id: http://skia.googlecode.com/svn/trunk@5747 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/SkDeferredCanvas.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils/SkDeferredCanvas.cpp b/src/utils/SkDeferredCanvas.cpp index a854d8cf59..eaba50342e 100644 --- a/src/utils/SkDeferredCanvas.cpp +++ b/src/utils/SkDeferredCanvas.cpp @@ -381,6 +381,9 @@ void DeferredDevice::skipPendingCommands() { if (!fRecordingCanvas->isDrawingToLayer() && fPipeController.hasPendingCommands()) { fFreshFrame = true; flushPendingCommands(kSilent_PlaybackMode); + if (fNotificationClient) { + fNotificationClient->skippedPendingDrawCommands(); + } } } |