Toggling this for local testing is a bit of a chore.
R=mtklein@google.com, reed@google.com
Author: robertphillips@google.com
Review URL: https://codereview.chromium.org/
316173004
void internalOnly_EnableOpts(bool enableOpts);
private:
-#ifdef SK_BUILD_FOR_ANDROID
/** Replay the current (partially recorded) operation stream into
canvas. This call doesn't close the current recording.
*/
friend class AndroidPicture;
friend class SkPictureRecorderReplayTester; // for unit testing
void partialReplay(SkCanvas* canvas) const;
-#endif
SkAutoTUnref<SkPicture> fPicture;
SkPictureRecord* fCanvas; // ref counted
}
}
-#ifdef SK_BUILD_FOR_ANDROID
void SkPictureRecorder::partialReplay(SkCanvas* canvas) const {
if (NULL == fPicture.get() || NULL == canvas) {
// Not recording or nothing to replay into
false));
playback->draw(*canvas, NULL);
}
-#endif
canvas->save();
}
-#ifdef SK_BUILD_FOR_ANDROID
/**
* A canvas that records the number of saves, saveLayers and restores.
*/
REPORTER_ASSERT(reporter, !copy->willPlayBackBitmaps());
}
}
-#endif
static void test_unbalanced_save_restores(skiatest::Reporter* reporter) {
SkCanvas testCanvas(100, 100);