Remove unused SkPictureGpuAnalyzer::analyze()

After https://crrev.com/c64bd21780da13051846ae45b54a1e6c6bf6ac52,
Chromium no longer uses analyze().

R=mtklein@google.com,reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2014983002

Review-Url: https://codereview.chromium.org/2014983002
This commit is contained in:
fmalita 2016-05-31 06:32:57 -07:00 committed by Commit bot
parent a4b09a117d
commit 019db3fe88
3 changed files with 3 additions and 6 deletions

View File

@ -33,9 +33,6 @@ public:
*/
void analyzePicture(const SkPicture*);
// Legacy/transitional alias.
void analyze(const SkPicture* picture) { this->analyzePicture(picture); }
/**
* Process an explicit clipPath op.
*/

View File

@ -27,7 +27,7 @@ SkPictureGpuAnalyzer::SkPictureGpuAnalyzer(sk_sp<GrContextThreadSafeProxy> /* un
SkPictureGpuAnalyzer::SkPictureGpuAnalyzer(const sk_sp<SkPicture>& picture,
sk_sp<GrContextThreadSafeProxy> ctx)
: SkPictureGpuAnalyzer(std::move(ctx)) {
this->analyze(picture.get());
this->analyzePicture(picture.get());
}
void SkPictureGpuAnalyzer::analyzePicture(const SkPicture* picture) {

View File

@ -1416,7 +1416,7 @@ DEF_TEST(PictureGpuAnalyzer, r) {
SkPictureGpuAnalyzer analyzer;
REPORTER_ASSERT(r, analyzer.suitableForGpuRasterization());
analyzer.analyze(vetoPicture.get());
analyzer.analyzePicture(vetoPicture.get());
REPORTER_ASSERT(r, !analyzer.suitableForGpuRasterization());
analyzer.reset();
@ -1425,7 +1425,7 @@ DEF_TEST(PictureGpuAnalyzer, r) {
recorder.beginRecording(10, 10)->drawPicture(vetoPicture);
sk_sp<SkPicture> nestedVetoPicture(recorder.finishRecordingAsPicture());
analyzer.analyze(nestedVetoPicture.get());
analyzer.analyzePicture(nestedVetoPicture.get());
REPORTER_ASSERT(r, !analyzer.suitableForGpuRasterization());
analyzer.reset();