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

Unified Diff: src/core/SkPictureRecorder.cpp

Issue 364823009: Port suitableForGpuRasterization to SkRecord (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: More SkPicture.h cleanup Created 6 years, 4 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: src/core/SkPictureRecorder.cpp
diff --git a/src/core/SkPictureRecorder.cpp b/src/core/SkPictureRecorder.cpp
index 7d24caf6fce880f9e32a2dec6c7de0e11c8e7d8a..2598923e4adbb8da1dc251b4502e1781d551b4b9 100644
--- a/src/core/SkPictureRecorder.cpp
+++ b/src/core/SkPictureRecorder.cpp
@@ -9,6 +9,7 @@
#include "SkPictureRecord.h"
#include "SkPictureRecorder.h"
#include "SkRecord.h"
+#include "SkRecordAnalysis.h"
#include "SkRecordDraw.h"
#include "SkRecorder.h"
#include "SkTypes.h"
@@ -65,6 +66,7 @@ SkPicture* SkPictureRecorder::endRecording() {
SkPicture* picture = NULL;
if (NULL != fRecord.get()) {
+ fRecord->fAccelerationInfo = AnalyzeSkRecord(*fRecord.get());
picture = SkNEW_ARGS(SkPicture, (fWidth, fHeight, fRecord.detach(), fBBH.get()));
}
« no previous file with comments | « src/core/SkPictureAnalysis.h ('k') | src/core/SkRecord.h » ('j') | src/core/SkRecord.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698