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

Unified Diff: samplecode/SampleApp.cpp

Issue 313613004: Alter SkCanvas::drawPicture (devirtualize, take const SkPicture, take pointer) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add staging entry point for Chromium and Android Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: samplecode/SampleApp.cpp
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
index 5e304d86611824ab7d13b79ef3e797672df46485..35021cba9f643423bf314ae8e3efb844a5ffe9bd 100644
--- a/samplecode/SampleApp.cpp
+++ b/samplecode/SampleApp.cpp
@@ -1470,7 +1470,7 @@ void SampleWindow::afterChildren(SkCanvas* orig) {
if (true) {
SkPicture* pict = new SkPicture(*picture);
this->installDrawFilter(orig);
- orig->drawPicture(*pict);
+ orig->drawPicture(pict);
pict->unref();
} else if (true) {
SkDynamicMemoryWStream ostream;
@@ -1480,7 +1480,7 @@ void SampleWindow::afterChildren(SkCanvas* orig) {
SkMemoryStream istream(data->data(), data->size());
SkAutoTUnref<SkPicture> pict(SkPicture::CreateFromStream(&istream));
if (pict.get() != NULL) {
- orig->drawPicture(*pict.get());
+ orig->drawPicture(pict.get());
}
} else {
picture->draw(orig);

Powered by Google App Engine
This is Rietveld 408576698