Realized that a pending CL needed to add (yet another) private type to SkRecords.h, but w/o this CL I'd be forced to move that header also into private. This change frees us up to not have transitive exposure for types that need to be recorded.
Bug: skia:
Change-Id: Id79f1c2e44ba85e063c1360cf96c92de6397ca2b
Reviewed-on: https://skia-review.googlesource.com/17031
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
#include "SkPictureRecorder.h"
#include "SkPoint3.h"
#include "SkRandom.h"
+#include "SkRegion.h"
#include "SkTableColorFilter.h"
#include "SkTileImageFilter.h"
#include "SkTypeface.h"
#include "SkPictureImageFilter.h"
#include "SkRRectsGaussianEdgeMaskFilter.h"
#include "SkTableColorFilter.h"
+#include "SkTextBlob.h"
#include "SkTileImageFilter.h"
#include "SkXfermodeImageFilter.h"
#include "gm.h"
#include "SkCanvas.h"
+#include "SkPath.h"
#include "SkPicture.h"
#include "SkPictureRecorder.h"
#include "SkDropShadowImageFilter.h"
#include "SkImageSource.h"
#include "SkOffsetImageFilter.h"
+#include "SkPath.h"
#include "SkPictureImageFilter.h"
#include "SkPictureRecorder.h"
#include "SkRandom.h"
#include "SkColorFilter.h"
#include "SkMultiPictureDraw.h"
+#include "SkPath.h"
#include "SkPictureRecorder.h"
#include "SkSurface.h"
#include "gm.h"
#include "SkPaint.h"
+#include "SkPath.h"
#include "SkPictureRecorder.h"
static sk_sp<SkPicture> make_picture() {
#include "SkGradientShader.h"
#include "SkImageGenerator.h"
#include "SkPaint.h"
+#include "SkPath.h"
#include "SkPathOps.h"
#include "SkPicture.h"
#include "SkPictureRecorder.h"
"$_src/core/SkMipMap.cpp",
"$_src/core/SkMipMap.h",
"$_src/core/SkMiniRecorder.cpp",
+ "$_src/core/SkMiniRecorder.h",
"$_src/core/SkModeColorFilter.cpp",
"$_src/core/SkMultiPictureDraw.cpp",
"$_src/core/SkNextID.h",
"$_src/core/SkReader32.h",
"$_src/core/SkRecord.cpp",
"$_src/core/SkRecords.cpp",
+ "$_src/core/SkRecords.h",
"$_src/core/SkRecordDraw.cpp",
"$_src/core/SkRecordOpts.cpp",
"$_src/core/SkRecordOpts.h",
"$_include/private/SkFloatingPoint.h",
"$_include/private/SkMalloc.h",
"$_include/private/SkMessageBus.h",
- "$_include/private/SkMiniRecorder.h",
"$_include/private/SkMutex.h",
"$_include/private/SkOnce.h",
- "$_include/private/SkRecords.h",
"$_include/private/SkSemaphore.h",
"$_include/private/SkShadowFlags.h",
"$_include/private/SkSpinlock.h",
#ifndef SkPictureRecorder_DEFINED
#define SkPictureRecorder_DEFINED
-#include "../private/SkMiniRecorder.h"
#include "SkBBHFactory.h"
#include "SkPicture.h"
#include "SkRefCnt.h"
class GrContext;
class SkCanvas;
class SkDrawable;
+class SkMiniRecorder;
class SkPictureRecord;
class SkRecord;
class SkRecorder;
sk_sp<SkBBoxHierarchy> fBBH;
std::unique_ptr<SkRecorder> fRecorder;
sk_sp<SkRecord> fRecord;
- SkMiniRecorder fMiniRecorder;
+ std::unique_ptr<SkMiniRecorder> fMiniRecorder;
typedef SkNoncopyable INHERITED;
};
*/
#include "GMSampleView.h"
+#include "SkData.h"
GMSampleView::GMSampleView(GM* gm) : fShowSize(false), fGM(gm) {}
#include "SkPictureRecorder.h"
#include "SkPoint3.h"
#include "SkRandom.h"
+#include "SkRegion.h"
#include "SkTableColorFilter.h"
#include "SkTileImageFilter.h"
#include "SkTypeface.h"
#include "SkBigPicture.h"
#include "SkData.h"
#include "SkDrawable.h"
+#include "SkMiniRecorder.h"
#include "SkPictureRecorder.h"
#include "SkRecord.h"
#include "SkRecordDraw.h"
SkPictureRecorder::SkPictureRecorder() {
fActivelyRecording = false;
- fRecorder.reset(new SkRecorder(nullptr, SkRect::MakeEmpty(), &fMiniRecorder));
+ fMiniRecorder.reset(new SkMiniRecorder);
+ fRecorder.reset(new SkRecorder(nullptr, SkRect::MakeEmpty(), fMiniRecorder.get()));
}
SkPictureRecorder::~SkPictureRecorder() {}
SkRecorder::DrawPictureMode dpm = (recordFlags & kPlaybackDrawPicture_RecordFlag)
? SkRecorder::Playback_DrawPictureMode
: SkRecorder::Record_DrawPictureMode;
- fRecorder->reset(fRecord.get(), cullRect, dpm, &fMiniRecorder);
+ fRecorder->reset(fRecord.get(), cullRect, dpm, fMiniRecorder.get());
fActivelyRecording = true;
return this->getRecordingCanvas();
}
fRecorder->restoreToCount(1); // If we were missing any restores, add them now.
if (fRecord->count() == 0) {
- auto pic = fMiniRecorder.detachAsPicture(fBBH ? nullptr : &fCullRect);
+ auto pic = fMiniRecorder->detachAsPicture(fBBH ? nullptr : &fCullRect);
fBBH.reset(nullptr);
return pic;
}
*/
#include "SkData.h"
+#include "SkCanvas.h"
#include "SkGraphics.h"
#include "SkImageGenerator.h"
#include "Test.h"
#if SK_SUPPORT_GPU
#include "GrContext.h"
#endif
+#include "SkCanvas.h"
#include "SkColorSpace_Base.h"
#include "SkImage.h"
#include "SkSurface.h"
#include "Test.h"
+#include "../include/core/SkBitmap.h"
#include "../include/core/SkCanvas.h"
#include "../include/core/SkPicture.h"
#include "../include/core/SkStream.h"