/src/mozilla-central/gfx/2d/RecordedEventImpl.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | | /* vim: set ts=8 sts=2 et sw=2 tw=80: */ |
3 | | /* This Source Code Form is subject to the terms of the Mozilla Public |
4 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
5 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
6 | | |
7 | | #ifndef MOZILLA_GFX_RECORDEDEVENTIMPL_H_ |
8 | | #define MOZILLA_GFX_RECORDEDEVENTIMPL_H_ |
9 | | |
10 | | #include "RecordedEvent.h" |
11 | | |
12 | | #include "PathRecording.h" |
13 | | #include "RecordingTypes.h" |
14 | | #include "Tools.h" |
15 | | #include "Filters.h" |
16 | | #include "Logging.h" |
17 | | #include "ScaledFontBase.h" |
18 | | #include "SFNTData.h" |
19 | | |
20 | | namespace mozilla { |
21 | | namespace gfx { |
22 | | |
23 | | template<class Derived> |
24 | | class RecordedEventDerived : public RecordedEvent { |
25 | | using RecordedEvent::RecordedEvent; |
26 | | public: |
27 | 0 | void RecordToStream(std::ostream &aStream) const override { |
28 | 0 | static_cast<const Derived*>(this)->Record(aStream); |
29 | 0 | } Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedDrawTargetCreation>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedDrawTargetDestruction>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedCreateSimilarDrawTarget>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedCreateClippedDrawTarget>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFillRect>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedStrokeRect>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedStrokeLine>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFill>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFillGlyphs>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedMask>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedStroke>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedClearRect>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedCopySurface>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedPushClip>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedPushClipRect>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedPopClip>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedPushLayer>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedPushLayerWithBlend>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedPopLayer>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedSetTransform>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedDrawSurface>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedDrawSurfaceWithShadow>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedDrawFilter>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedPathDestruction>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedSourceSurfaceCreation>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedSourceSurfaceDestruction>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedExternalSurfaceCreation>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFilterNodeCreation>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFilterNodeDestruction>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedGradientStopsCreation>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedGradientStopsDestruction>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedSnapshot>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedIntoLuminanceSource>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFontData>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFontDescriptor>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedUnscaledFontCreation>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedUnscaledFontDestruction>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedScaledFontCreation>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedScaledFontDestruction>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedMaskSurface>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFilterNodeSetAttribute>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFilterNodeSetInput>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedPathCreation>::RecordToStream(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const |
30 | 0 | void RecordToStream(EventStream& aStream) const override { |
31 | 0 | static_cast<const Derived*>(this)->Record(aStream); |
32 | 0 | } Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedDrawTargetCreation>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedDrawTargetDestruction>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedCreateSimilarDrawTarget>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedCreateClippedDrawTarget>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFillRect>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedStrokeRect>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedStrokeLine>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFill>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFillGlyphs>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedMask>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedStroke>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedClearRect>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedCopySurface>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedPushClip>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedPushClipRect>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedPopClip>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedPushLayer>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedPushLayerWithBlend>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedPopLayer>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedSetTransform>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedDrawSurface>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedDrawSurfaceWithShadow>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedDrawFilter>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedPathDestruction>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedSourceSurfaceCreation>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedSourceSurfaceDestruction>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedExternalSurfaceCreation>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFilterNodeCreation>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFilterNodeDestruction>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedGradientStopsCreation>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedGradientStopsDestruction>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedSnapshot>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedIntoLuminanceSource>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFontData>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFontDescriptor>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedUnscaledFontCreation>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedUnscaledFontDestruction>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedScaledFontCreation>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedScaledFontDestruction>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedMaskSurface>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFilterNodeSetAttribute>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFilterNodeSetInput>::RecordToStream(mozilla::gfx::EventStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedPathCreation>::RecordToStream(mozilla::gfx::EventStream&) const |
33 | 0 | void RecordToStream(MemStream &aStream) const override { |
34 | 0 | SizeCollector size; |
35 | 0 | static_cast<const Derived*>(this)->Record(size); |
36 | 0 | aStream.Resize(aStream.mLength + size.mTotalSize); |
37 | 0 | MemWriter writer(aStream.mData + aStream.mLength - size.mTotalSize); |
38 | 0 | static_cast<const Derived*>(this)->Record(writer); |
39 | 0 | } Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedDrawTargetCreation>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedDrawTargetDestruction>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedCreateSimilarDrawTarget>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedCreateClippedDrawTarget>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFillRect>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedStrokeRect>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedStrokeLine>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFill>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFillGlyphs>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedMask>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedStroke>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedClearRect>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedCopySurface>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedPushClip>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedPushClipRect>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedPopClip>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedPushLayer>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedPushLayerWithBlend>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedPopLayer>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedSetTransform>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedDrawSurface>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedDrawSurfaceWithShadow>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedDrawFilter>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedPathDestruction>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedSourceSurfaceCreation>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedSourceSurfaceDestruction>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedExternalSurfaceCreation>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFilterNodeCreation>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFilterNodeDestruction>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedGradientStopsCreation>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedGradientStopsDestruction>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedSnapshot>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedIntoLuminanceSource>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFontData>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFontDescriptor>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedUnscaledFontCreation>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedUnscaledFontDestruction>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedScaledFontCreation>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedScaledFontDestruction>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedMaskSurface>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFilterNodeSetAttribute>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedFilterNodeSetInput>::RecordToStream(mozilla::gfx::MemStream&) const Unexecuted instantiation: mozilla::gfx::RecordedEventDerived<mozilla::gfx::RecordedPathCreation>::RecordToStream(mozilla::gfx::MemStream&) const |
40 | | }; |
41 | | |
42 | | template<class Derived> |
43 | | class RecordedDrawingEvent : public RecordedEventDerived<Derived> |
44 | | { |
45 | | public: |
46 | 0 | virtual ReferencePtr GetDestinedDT() override { return mDT; } Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFillRect>::GetDestinedDT() Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStrokeRect>::GetDestinedDT() Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStrokeLine>::GetDestinedDT() Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFill>::GetDestinedDT() Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFillGlyphs>::GetDestinedDT() Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedMask>::GetDestinedDT() Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStroke>::GetDestinedDT() Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedClearRect>::GetDestinedDT() Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedCopySurface>::GetDestinedDT() Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushClip>::GetDestinedDT() Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushClipRect>::GetDestinedDT() Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPopClip>::GetDestinedDT() Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushLayer>::GetDestinedDT() Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushLayerWithBlend>::GetDestinedDT() Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPopLayer>::GetDestinedDT() Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedSetTransform>::GetDestinedDT() Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawSurface>::GetDestinedDT() Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawSurfaceWithShadow>::GetDestinedDT() Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawFilter>::GetDestinedDT() Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedMaskSurface>::GetDestinedDT() |
47 | | |
48 | | protected: |
49 | | RecordedDrawingEvent(RecordedEvent::EventType aType, DrawTarget *aTarget) |
50 | | : RecordedEventDerived<Derived>(aType), mDT(aTarget) |
51 | 0 | { |
52 | 0 | } Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFillRect>::RecordedDrawingEvent(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::DrawTarget*) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStrokeRect>::RecordedDrawingEvent(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::DrawTarget*) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStrokeLine>::RecordedDrawingEvent(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::DrawTarget*) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFill>::RecordedDrawingEvent(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::DrawTarget*) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFillGlyphs>::RecordedDrawingEvent(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::DrawTarget*) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedMask>::RecordedDrawingEvent(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::DrawTarget*) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedMaskSurface>::RecordedDrawingEvent(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::DrawTarget*) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStroke>::RecordedDrawingEvent(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::DrawTarget*) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawSurface>::RecordedDrawingEvent(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::DrawTarget*) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawSurfaceWithShadow>::RecordedDrawingEvent(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::DrawTarget*) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawFilter>::RecordedDrawingEvent(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::DrawTarget*) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedClearRect>::RecordedDrawingEvent(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::DrawTarget*) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedCopySurface>::RecordedDrawingEvent(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::DrawTarget*) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushClip>::RecordedDrawingEvent(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::DrawTarget*) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushClipRect>::RecordedDrawingEvent(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::DrawTarget*) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPopClip>::RecordedDrawingEvent(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::DrawTarget*) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushLayer>::RecordedDrawingEvent(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::DrawTarget*) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushLayerWithBlend>::RecordedDrawingEvent(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::DrawTarget*) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPopLayer>::RecordedDrawingEvent(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::DrawTarget*) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedSetTransform>::RecordedDrawingEvent(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::DrawTarget*) |
53 | | |
54 | | template<class S> |
55 | | RecordedDrawingEvent(RecordedEvent::EventType aType, S &aStream); |
56 | | template<class S> |
57 | | void Record(S &aStream) const; |
58 | | |
59 | | virtual ReferencePtr GetObjectRef() const override; |
60 | | |
61 | | ReferencePtr mDT; |
62 | | }; |
63 | | |
64 | | class RecordedDrawTargetCreation : public RecordedEventDerived<RecordedDrawTargetCreation> { |
65 | | public: |
66 | | RecordedDrawTargetCreation(ReferencePtr aRefPtr, BackendType aType, const IntSize &aSize, SurfaceFormat aFormat, |
67 | | bool aHasExistingData = false, SourceSurface *aExistingData = nullptr) |
68 | | : RecordedEventDerived(DRAWTARGETCREATION), mRefPtr(aRefPtr), mBackendType(aType), mSize(aSize), mFormat(aFormat) |
69 | | , mHasExistingData(aHasExistingData), mExistingData(aExistingData) |
70 | 0 | {} |
71 | | |
72 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
73 | | |
74 | | template<class S> |
75 | | void Record(S &aStream) const; |
76 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
77 | | |
78 | 0 | virtual std::string GetName() const override { return "DrawTarget Creation"; } |
79 | 0 | virtual ReferencePtr GetObjectRef() const override { return mRefPtr; } |
80 | | |
81 | | ReferencePtr mRefPtr; |
82 | | BackendType mBackendType; |
83 | | IntSize mSize; |
84 | | SurfaceFormat mFormat; |
85 | | bool mHasExistingData; |
86 | | RefPtr<SourceSurface> mExistingData; |
87 | | |
88 | | private: |
89 | | friend class RecordedEvent; |
90 | | |
91 | | template<class S> |
92 | | MOZ_IMPLICIT RecordedDrawTargetCreation(S &aStream); |
93 | | }; |
94 | | |
95 | | class RecordedDrawTargetDestruction : public RecordedEventDerived<RecordedDrawTargetDestruction> { |
96 | | public: |
97 | | MOZ_IMPLICIT RecordedDrawTargetDestruction(ReferencePtr aRefPtr) |
98 | | : RecordedEventDerived(DRAWTARGETDESTRUCTION), mRefPtr(aRefPtr), |
99 | | mBackendType(BackendType::NONE) |
100 | 0 | {} |
101 | | |
102 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
103 | | |
104 | | template<class S> |
105 | | void Record(S &aStream) const; |
106 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
107 | | |
108 | 0 | virtual std::string GetName() const override { return "DrawTarget Destruction"; } |
109 | 0 | virtual ReferencePtr GetObjectRef() const override { return mRefPtr; } |
110 | | |
111 | | ReferencePtr mRefPtr; |
112 | | |
113 | | BackendType mBackendType; |
114 | | private: |
115 | | friend class RecordedEvent; |
116 | | |
117 | | template<class S> |
118 | | MOZ_IMPLICIT RecordedDrawTargetDestruction(S &aStream); |
119 | | }; |
120 | | |
121 | | class RecordedCreateSimilarDrawTarget : public RecordedEventDerived<RecordedCreateSimilarDrawTarget> { |
122 | | public: |
123 | | RecordedCreateSimilarDrawTarget(ReferencePtr aRefPtr, const IntSize &aSize, |
124 | | SurfaceFormat aFormat) |
125 | | : RecordedEventDerived(CREATESIMILARDRAWTARGET) |
126 | | , mRefPtr(aRefPtr) , mSize(aSize), mFormat(aFormat) |
127 | 0 | { |
128 | 0 | } |
129 | | |
130 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
131 | | |
132 | | template<class S> |
133 | | void Record(S &aStream) const; |
134 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
135 | | |
136 | 0 | virtual std::string GetName() const override { return "CreateSimilarDrawTarget"; } |
137 | 0 | virtual ReferencePtr GetObjectRef() const override { return mRefPtr; } |
138 | | |
139 | | ReferencePtr mRefPtr; |
140 | | IntSize mSize; |
141 | | SurfaceFormat mFormat; |
142 | | |
143 | | private: |
144 | | friend class RecordedEvent; |
145 | | |
146 | | template<class S> |
147 | | MOZ_IMPLICIT RecordedCreateSimilarDrawTarget(S &aStream); |
148 | | }; |
149 | | |
150 | | class RecordedCreateClippedDrawTarget : public RecordedEventDerived<RecordedCreateClippedDrawTarget> { |
151 | | public: |
152 | | RecordedCreateClippedDrawTarget(ReferencePtr aRefPtr, const IntSize& aMaxSize, const Matrix& aTransform, SurfaceFormat aFormat) |
153 | | : RecordedEventDerived(CREATECLIPPEDDRAWTARGET) |
154 | | , mRefPtr(aRefPtr) |
155 | | , mMaxSize(aMaxSize) |
156 | | , mTransform(aTransform) |
157 | | , mFormat(aFormat) |
158 | 0 | { |
159 | 0 | } |
160 | | |
161 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
162 | | |
163 | | template<class S> |
164 | | void Record(S &aStream) const; |
165 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
166 | | |
167 | 0 | virtual std::string GetName() const override { return "CreateClippedDrawTarget"; } |
168 | 0 | virtual ReferencePtr GetObjectRef() const override { return mRefPtr; } |
169 | | |
170 | | ReferencePtr mRefPtr; |
171 | | IntSize mMaxSize; |
172 | | Matrix mTransform; |
173 | | SurfaceFormat mFormat; |
174 | | |
175 | | private: |
176 | | friend class RecordedEvent; |
177 | | |
178 | | template<class S> |
179 | | MOZ_IMPLICIT RecordedCreateClippedDrawTarget(S &aStream); |
180 | | }; |
181 | | |
182 | | class RecordedFillRect : public RecordedDrawingEvent<RecordedFillRect> { |
183 | | public: |
184 | | RecordedFillRect(DrawTarget *aDT, const Rect &aRect, const Pattern &aPattern, const DrawOptions &aOptions) |
185 | | : RecordedDrawingEvent(FILLRECT, aDT), mRect(aRect), |
186 | | mPattern(), mOptions(aOptions) |
187 | 0 | { |
188 | 0 | StorePattern(mPattern, aPattern); |
189 | 0 | } |
190 | | |
191 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
192 | | |
193 | | template<class S> |
194 | | void Record(S &aStream) const; |
195 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
196 | | |
197 | 0 | virtual std::string GetName() const override { return "FillRect"; } |
198 | | |
199 | | private: |
200 | | friend class RecordedEvent; |
201 | | |
202 | | template<class S> |
203 | | MOZ_IMPLICIT RecordedFillRect(S &aStream); |
204 | | |
205 | | Rect mRect; |
206 | | PatternStorage mPattern; |
207 | | DrawOptions mOptions; |
208 | | }; |
209 | | |
210 | | class RecordedStrokeRect : public RecordedDrawingEvent<RecordedStrokeRect> { |
211 | | public: |
212 | | RecordedStrokeRect(DrawTarget *aDT, const Rect &aRect, const Pattern &aPattern, |
213 | | const StrokeOptions &aStrokeOptions, const DrawOptions &aOptions) |
214 | | : RecordedDrawingEvent(STROKERECT, aDT), mRect(aRect), |
215 | | mPattern(), mStrokeOptions(aStrokeOptions), |
216 | | mOptions(aOptions) |
217 | 0 | { |
218 | 0 | StorePattern(mPattern, aPattern); |
219 | 0 | } |
220 | | |
221 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
222 | | |
223 | | template<class S> |
224 | | void Record(S &aStream) const; |
225 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
226 | | |
227 | 0 | virtual std::string GetName() const override { return "StrokeRect"; } |
228 | | |
229 | | private: |
230 | | friend class RecordedEvent; |
231 | | |
232 | | template<class S> |
233 | | MOZ_IMPLICIT RecordedStrokeRect(S &aStream); |
234 | | |
235 | | Rect mRect; |
236 | | PatternStorage mPattern; |
237 | | StrokeOptions mStrokeOptions; |
238 | | DrawOptions mOptions; |
239 | | }; |
240 | | |
241 | | class RecordedStrokeLine : public RecordedDrawingEvent<RecordedStrokeLine> { |
242 | | public: |
243 | | RecordedStrokeLine(DrawTarget *aDT, const Point &aBegin, const Point &aEnd, |
244 | | const Pattern &aPattern, const StrokeOptions &aStrokeOptions, |
245 | | const DrawOptions &aOptions) |
246 | | : RecordedDrawingEvent(STROKELINE, aDT), mBegin(aBegin), mEnd(aEnd), |
247 | | mPattern(), mStrokeOptions(aStrokeOptions), mOptions(aOptions) |
248 | 0 | { |
249 | 0 | StorePattern(mPattern, aPattern); |
250 | 0 | } |
251 | | |
252 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
253 | | |
254 | | template<class S> |
255 | | void Record(S &aStream) const; |
256 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
257 | | |
258 | 0 | virtual std::string GetName() const override { return "StrokeLine"; } |
259 | | |
260 | | private: |
261 | | friend class RecordedEvent; |
262 | | |
263 | | template<class S> |
264 | | MOZ_IMPLICIT RecordedStrokeLine(S &aStream); |
265 | | |
266 | | Point mBegin; |
267 | | Point mEnd; |
268 | | PatternStorage mPattern; |
269 | | StrokeOptions mStrokeOptions; |
270 | | DrawOptions mOptions; |
271 | | }; |
272 | | |
273 | | class RecordedFill : public RecordedDrawingEvent<RecordedFill> { |
274 | | public: |
275 | | RecordedFill(DrawTarget *aDT, ReferencePtr aPath, const Pattern &aPattern, const DrawOptions &aOptions) |
276 | | : RecordedDrawingEvent(FILL, aDT), mPath(aPath), |
277 | | mPattern(), mOptions(aOptions) |
278 | 0 | { |
279 | 0 | StorePattern(mPattern, aPattern); |
280 | 0 | } |
281 | | |
282 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
283 | | |
284 | | template<class S> void Record(S &aStream) const; |
285 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
286 | | |
287 | 0 | virtual std::string GetName() const override { return "Fill"; } |
288 | | |
289 | | private: |
290 | | friend class RecordedEvent; |
291 | | |
292 | | template<class S> |
293 | | MOZ_IMPLICIT RecordedFill(S &aStream); |
294 | | |
295 | | ReferencePtr mPath; |
296 | | PatternStorage mPattern; |
297 | | DrawOptions mOptions; |
298 | | }; |
299 | | |
300 | | class RecordedFillGlyphs : public RecordedDrawingEvent<RecordedFillGlyphs> { |
301 | | public: |
302 | | RecordedFillGlyphs(DrawTarget *aDT, ReferencePtr aScaledFont, const Pattern &aPattern, const DrawOptions &aOptions, |
303 | | const Glyph *aGlyphs, uint32_t aNumGlyphs) |
304 | | : RecordedDrawingEvent(FILLGLYPHS, aDT), mScaledFont(aScaledFont), |
305 | | mPattern(), mOptions(aOptions) |
306 | 0 | { |
307 | 0 | StorePattern(mPattern, aPattern); |
308 | 0 | mNumGlyphs = aNumGlyphs; |
309 | 0 | mGlyphs = new Glyph[aNumGlyphs]; |
310 | 0 | memcpy(mGlyphs, aGlyphs, sizeof(Glyph) * aNumGlyphs); |
311 | 0 | } |
312 | | virtual ~RecordedFillGlyphs(); |
313 | | |
314 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
315 | | |
316 | | template<class S> void Record(S &aStream) const; |
317 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
318 | | |
319 | 0 | virtual std::string GetName() const override { return "FillGlyphs"; } |
320 | | |
321 | | private: |
322 | | friend class RecordedEvent; |
323 | | |
324 | | template<class S> |
325 | | MOZ_IMPLICIT RecordedFillGlyphs(S &aStream); |
326 | | |
327 | | ReferencePtr mScaledFont; |
328 | | PatternStorage mPattern; |
329 | | DrawOptions mOptions; |
330 | | Glyph *mGlyphs; |
331 | | uint32_t mNumGlyphs; |
332 | | }; |
333 | | |
334 | | class RecordedMask : public RecordedDrawingEvent<RecordedMask> { |
335 | | public: |
336 | | RecordedMask(DrawTarget *aDT, const Pattern &aSource, const Pattern &aMask, const DrawOptions &aOptions) |
337 | | : RecordedDrawingEvent(MASK, aDT), mSource(), mMask(), mOptions(aOptions) |
338 | 0 | { |
339 | 0 | StorePattern(mSource, aSource); |
340 | 0 | StorePattern(mMask, aMask); |
341 | 0 | } |
342 | | |
343 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
344 | | |
345 | | template<class S> void Record(S &aStream) const; |
346 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
347 | | |
348 | 0 | virtual std::string GetName() const override { return "Mask"; } |
349 | | |
350 | | private: |
351 | | friend class RecordedEvent; |
352 | | |
353 | | template<class S> |
354 | | MOZ_IMPLICIT RecordedMask(S &aStream); |
355 | | |
356 | | PatternStorage mSource; |
357 | | PatternStorage mMask; |
358 | | DrawOptions mOptions; |
359 | | }; |
360 | | |
361 | | class RecordedStroke : public RecordedDrawingEvent<RecordedStroke> { |
362 | | public: |
363 | | RecordedStroke(DrawTarget *aDT, ReferencePtr aPath, const Pattern &aPattern, |
364 | | const StrokeOptions &aStrokeOptions, const DrawOptions &aOptions) |
365 | | : RecordedDrawingEvent(STROKE, aDT), mPath(aPath), mPattern(), |
366 | | mStrokeOptions(aStrokeOptions), mOptions(aOptions) |
367 | 0 | { |
368 | 0 | StorePattern(mPattern, aPattern); |
369 | 0 | } |
370 | | |
371 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
372 | | |
373 | | template<class S> void Record(S &aStream) const; |
374 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
375 | | |
376 | 0 | virtual std::string GetName() const override { return "Stroke"; } |
377 | | |
378 | | private: |
379 | | friend class RecordedEvent; |
380 | | |
381 | | template<class S> |
382 | | MOZ_IMPLICIT RecordedStroke(S &aStream); |
383 | | |
384 | | ReferencePtr mPath; |
385 | | PatternStorage mPattern; |
386 | | StrokeOptions mStrokeOptions; |
387 | | DrawOptions mOptions; |
388 | | }; |
389 | | |
390 | | class RecordedClearRect : public RecordedDrawingEvent<RecordedClearRect> { |
391 | | public: |
392 | | RecordedClearRect(DrawTarget *aDT, const Rect &aRect) |
393 | | : RecordedDrawingEvent(CLEARRECT, aDT), mRect(aRect) |
394 | 0 | { |
395 | 0 | } |
396 | | |
397 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
398 | | |
399 | | template<class S> void Record(S &aStream) const; |
400 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
401 | | |
402 | 0 | virtual std::string GetName() const override { return "ClearRect"; } |
403 | | |
404 | | private: |
405 | | friend class RecordedEvent; |
406 | | |
407 | | template<class S> |
408 | | MOZ_IMPLICIT RecordedClearRect(S &aStream); |
409 | | |
410 | | Rect mRect; |
411 | | }; |
412 | | |
413 | | class RecordedCopySurface : public RecordedDrawingEvent<RecordedCopySurface> { |
414 | | public: |
415 | | RecordedCopySurface(DrawTarget *aDT, ReferencePtr aSourceSurface, |
416 | | const IntRect &aSourceRect, const IntPoint &aDest) |
417 | | : RecordedDrawingEvent(COPYSURFACE, aDT), mSourceSurface(aSourceSurface), |
418 | | mSourceRect(aSourceRect), mDest(aDest) |
419 | 0 | { |
420 | 0 | } |
421 | | |
422 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
423 | | |
424 | | template<class S> void Record(S &aStream) const; |
425 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
426 | | |
427 | 0 | virtual std::string GetName() const override { return "CopySurface"; } |
428 | | |
429 | | private: |
430 | | friend class RecordedEvent; |
431 | | |
432 | | template<class S> |
433 | | MOZ_IMPLICIT RecordedCopySurface(S &aStream); |
434 | | |
435 | | ReferencePtr mSourceSurface; |
436 | | IntRect mSourceRect; |
437 | | IntPoint mDest; |
438 | | }; |
439 | | |
440 | | class RecordedPushClip : public RecordedDrawingEvent<RecordedPushClip> { |
441 | | public: |
442 | | RecordedPushClip(DrawTarget *aDT, ReferencePtr aPath) |
443 | | : RecordedDrawingEvent(PUSHCLIP, aDT), mPath(aPath) |
444 | 0 | { |
445 | 0 | } |
446 | | |
447 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
448 | | |
449 | | template<class S> void Record(S &aStream) const; |
450 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
451 | | |
452 | 0 | virtual std::string GetName() const override { return "PushClip"; } |
453 | | |
454 | | private: |
455 | | friend class RecordedEvent; |
456 | | |
457 | | template<class S> |
458 | | MOZ_IMPLICIT RecordedPushClip(S &aStream); |
459 | | |
460 | | ReferencePtr mPath; |
461 | | }; |
462 | | |
463 | | class RecordedPushClipRect : public RecordedDrawingEvent<RecordedPushClipRect> { |
464 | | public: |
465 | | RecordedPushClipRect(DrawTarget *aDT, const Rect &aRect) |
466 | | : RecordedDrawingEvent(PUSHCLIPRECT, aDT), mRect(aRect) |
467 | 0 | { |
468 | 0 | } |
469 | | |
470 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
471 | | |
472 | | template<class S> void Record(S &aStream) const; |
473 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
474 | | |
475 | 0 | virtual std::string GetName() const override { return "PushClipRect"; } |
476 | | |
477 | | private: |
478 | | friend class RecordedEvent; |
479 | | |
480 | | template<class S> |
481 | | MOZ_IMPLICIT RecordedPushClipRect(S &aStream); |
482 | | |
483 | | Rect mRect; |
484 | | }; |
485 | | |
486 | | class RecordedPopClip : public RecordedDrawingEvent<RecordedPopClip> { |
487 | | public: |
488 | | MOZ_IMPLICIT RecordedPopClip(DrawTarget *aDT) |
489 | | : RecordedDrawingEvent(POPCLIP, aDT) |
490 | 0 | {} |
491 | | |
492 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
493 | | |
494 | | template<class S> void Record(S &aStream) const; |
495 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
496 | | |
497 | 0 | virtual std::string GetName() const override { return "PopClip"; } |
498 | | |
499 | | private: |
500 | | friend class RecordedEvent; |
501 | | |
502 | | template<class S> |
503 | | MOZ_IMPLICIT RecordedPopClip(S &aStream); |
504 | | }; |
505 | | |
506 | | class RecordedPushLayer : public RecordedDrawingEvent<RecordedPushLayer> { |
507 | | public: |
508 | | RecordedPushLayer(DrawTarget* aDT, bool aOpaque, Float aOpacity, |
509 | | SourceSurface* aMask, const Matrix& aMaskTransform, |
510 | | const IntRect& aBounds, bool aCopyBackground) |
511 | | : RecordedDrawingEvent(PUSHLAYER, aDT), mOpaque(aOpaque) |
512 | | , mOpacity(aOpacity), mMask(aMask), mMaskTransform(aMaskTransform) |
513 | | , mBounds(aBounds), mCopyBackground(aCopyBackground) |
514 | 0 | { |
515 | 0 | } |
516 | | |
517 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
518 | | |
519 | | template<class S> void Record(S &aStream) const; |
520 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
521 | | |
522 | 0 | virtual std::string GetName() const override { return "PushLayer"; } |
523 | | |
524 | | private: |
525 | | friend class RecordedEvent; |
526 | | |
527 | | template<class S> |
528 | | MOZ_IMPLICIT RecordedPushLayer(S &aStream); |
529 | | |
530 | | bool mOpaque; |
531 | | Float mOpacity; |
532 | | ReferencePtr mMask; |
533 | | Matrix mMaskTransform; |
534 | | IntRect mBounds; |
535 | | bool mCopyBackground; |
536 | | }; |
537 | | |
538 | | class RecordedPushLayerWithBlend : public RecordedDrawingEvent<RecordedPushLayerWithBlend> { |
539 | | public: |
540 | | RecordedPushLayerWithBlend(DrawTarget* aDT, bool aOpaque, Float aOpacity, |
541 | | SourceSurface* aMask, const Matrix& aMaskTransform, |
542 | | const IntRect& aBounds, bool aCopyBackground, |
543 | | CompositionOp aCompositionOp) |
544 | | : RecordedDrawingEvent(PUSHLAYERWITHBLEND, aDT), mOpaque(aOpaque) |
545 | | , mOpacity(aOpacity), mMask(aMask), mMaskTransform(aMaskTransform) |
546 | | , mBounds(aBounds), mCopyBackground(aCopyBackground) |
547 | | , mCompositionOp(aCompositionOp) |
548 | 0 | { |
549 | 0 | } |
550 | | |
551 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
552 | | |
553 | | template<class S> void Record(S &aStream) const; |
554 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
555 | | |
556 | 0 | virtual std::string GetName() const override { return "PushLayerWithBlend"; } |
557 | | |
558 | | private: |
559 | | friend class RecordedEvent; |
560 | | |
561 | | template<class S> |
562 | | MOZ_IMPLICIT RecordedPushLayerWithBlend(S &aStream); |
563 | | |
564 | | bool mOpaque; |
565 | | Float mOpacity; |
566 | | ReferencePtr mMask; |
567 | | Matrix mMaskTransform; |
568 | | IntRect mBounds; |
569 | | bool mCopyBackground; |
570 | | CompositionOp mCompositionOp; |
571 | | }; |
572 | | |
573 | | |
574 | | class RecordedPopLayer : public RecordedDrawingEvent<RecordedPopLayer> { |
575 | | public: |
576 | | MOZ_IMPLICIT RecordedPopLayer(DrawTarget* aDT) |
577 | | : RecordedDrawingEvent(POPLAYER, aDT) |
578 | 0 | { |
579 | 0 | } |
580 | | |
581 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
582 | | |
583 | | template<class S> void Record(S &aStream) const; |
584 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
585 | | |
586 | 0 | virtual std::string GetName() const override { return "PopLayer"; } |
587 | | |
588 | | private: |
589 | | friend class RecordedEvent; |
590 | | |
591 | | template<class S> |
592 | | MOZ_IMPLICIT RecordedPopLayer(S &aStream); |
593 | | }; |
594 | | |
595 | | class RecordedSetTransform : public RecordedDrawingEvent<RecordedSetTransform> { |
596 | | public: |
597 | | RecordedSetTransform(DrawTarget *aDT, const Matrix &aTransform) |
598 | | : RecordedDrawingEvent(SETTRANSFORM, aDT), mTransform(aTransform) |
599 | 0 | { |
600 | 0 | } |
601 | | |
602 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
603 | | |
604 | | template<class S> void Record(S &aStream) const; |
605 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
606 | | |
607 | 0 | virtual std::string GetName() const override { return "SetTransform"; } |
608 | | |
609 | | Matrix mTransform; |
610 | | private: |
611 | | friend class RecordedEvent; |
612 | | |
613 | | template<class S> |
614 | | MOZ_IMPLICIT RecordedSetTransform(S &aStream); |
615 | | }; |
616 | | |
617 | | class RecordedDrawSurface : public RecordedDrawingEvent<RecordedDrawSurface> { |
618 | | public: |
619 | | RecordedDrawSurface(DrawTarget *aDT, ReferencePtr aRefSource, const Rect &aDest, |
620 | | const Rect &aSource, const DrawSurfaceOptions &aDSOptions, |
621 | | const DrawOptions &aOptions) |
622 | | : RecordedDrawingEvent(DRAWSURFACE, aDT), mRefSource(aRefSource), mDest(aDest) |
623 | | , mSource(aSource), mDSOptions(aDSOptions), mOptions(aOptions) |
624 | 0 | { |
625 | 0 | } |
626 | | |
627 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
628 | | |
629 | | template<class S> void Record(S &aStream) const; |
630 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
631 | | |
632 | 0 | virtual std::string GetName() const override { return "DrawSurface"; } |
633 | | |
634 | | private: |
635 | | friend class RecordedEvent; |
636 | | |
637 | | template<class S> |
638 | | MOZ_IMPLICIT RecordedDrawSurface(S &aStream); |
639 | | |
640 | | ReferencePtr mRefSource; |
641 | | Rect mDest; |
642 | | Rect mSource; |
643 | | DrawSurfaceOptions mDSOptions; |
644 | | DrawOptions mOptions; |
645 | | }; |
646 | | |
647 | | class RecordedDrawSurfaceWithShadow : public RecordedDrawingEvent<RecordedDrawSurfaceWithShadow> { |
648 | | public: |
649 | | RecordedDrawSurfaceWithShadow(DrawTarget *aDT, ReferencePtr aRefSource, const Point &aDest, |
650 | | const Color &aColor, const Point &aOffset, |
651 | | Float aSigma, CompositionOp aOp) |
652 | | : RecordedDrawingEvent(DRAWSURFACEWITHSHADOW, aDT), mRefSource(aRefSource), mDest(aDest) |
653 | | , mColor(aColor), mOffset(aOffset), mSigma(aSigma), mOp(aOp) |
654 | 0 | { |
655 | 0 | } |
656 | | |
657 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
658 | | |
659 | | template<class S> void Record(S &aStream) const; |
660 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
661 | | |
662 | 0 | virtual std::string GetName() const override { return "DrawSurfaceWithShadow"; } |
663 | | |
664 | | private: |
665 | | friend class RecordedEvent; |
666 | | |
667 | | template<class S> |
668 | | MOZ_IMPLICIT RecordedDrawSurfaceWithShadow(S &aStream); |
669 | | |
670 | | ReferencePtr mRefSource; |
671 | | Point mDest; |
672 | | Color mColor; |
673 | | Point mOffset; |
674 | | Float mSigma; |
675 | | CompositionOp mOp; |
676 | | }; |
677 | | |
678 | | class RecordedDrawFilter : public RecordedDrawingEvent<RecordedDrawFilter> { |
679 | | public: |
680 | | RecordedDrawFilter(DrawTarget *aDT, ReferencePtr aNode, |
681 | | const Rect &aSourceRect, |
682 | | const Point &aDestPoint, |
683 | | const DrawOptions &aOptions) |
684 | | : RecordedDrawingEvent(DRAWFILTER, aDT), mNode(aNode), mSourceRect(aSourceRect) |
685 | | , mDestPoint(aDestPoint), mOptions(aOptions) |
686 | 0 | { |
687 | 0 | } |
688 | | |
689 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
690 | | |
691 | | template<class S> void Record(S &aStream) const; |
692 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
693 | | |
694 | 0 | virtual std::string GetName() const override { return "DrawFilter"; } |
695 | | |
696 | | private: |
697 | | friend class RecordedEvent; |
698 | | |
699 | | template<class S> |
700 | | MOZ_IMPLICIT RecordedDrawFilter(S &aStream); |
701 | | |
702 | | ReferencePtr mNode; |
703 | | Rect mSourceRect; |
704 | | Point mDestPoint; |
705 | | DrawOptions mOptions; |
706 | | }; |
707 | | |
708 | | class RecordedPathCreation : public RecordedEventDerived<RecordedPathCreation> { |
709 | | public: |
710 | | MOZ_IMPLICIT RecordedPathCreation(PathRecording *aPath); |
711 | | ~RecordedPathCreation(); |
712 | | |
713 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
714 | | |
715 | | template<class S> void Record(S &aStream) const; |
716 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
717 | | |
718 | 0 | virtual std::string GetName() const override { return "Path Creation"; } |
719 | 0 | virtual ReferencePtr GetObjectRef() const override { return mRefPtr; } |
720 | | |
721 | | private: |
722 | | friend class RecordedEvent; |
723 | | |
724 | | ReferencePtr mRefPtr; |
725 | | FillRule mFillRule; |
726 | | std::vector<PathOp> mPathOps; |
727 | | |
728 | | template<class S> |
729 | | MOZ_IMPLICIT RecordedPathCreation(S &aStream); |
730 | | }; |
731 | | |
732 | | class RecordedPathDestruction : public RecordedEventDerived<RecordedPathDestruction> { |
733 | | public: |
734 | | MOZ_IMPLICIT RecordedPathDestruction(PathRecording *aPath) |
735 | | : RecordedEventDerived(PATHDESTRUCTION), mRefPtr(aPath) |
736 | 0 | { |
737 | 0 | } |
738 | | |
739 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
740 | | |
741 | | template<class S> void Record(S &aStream) const; |
742 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
743 | | |
744 | 0 | virtual std::string GetName() const override { return "Path Destruction"; } |
745 | 0 | virtual ReferencePtr GetObjectRef() const override { return mRefPtr; } |
746 | | |
747 | | private: |
748 | | friend class RecordedEvent; |
749 | | |
750 | | ReferencePtr mRefPtr; |
751 | | |
752 | | template<class S> |
753 | | MOZ_IMPLICIT RecordedPathDestruction(S &aStream); |
754 | | }; |
755 | | |
756 | | class RecordedSourceSurfaceCreation : public RecordedEventDerived<RecordedSourceSurfaceCreation> { |
757 | | public: |
758 | | RecordedSourceSurfaceCreation(ReferencePtr aRefPtr, uint8_t *aData, int32_t aStride, |
759 | | const IntSize &aSize, SurfaceFormat aFormat) |
760 | | : RecordedEventDerived(SOURCESURFACECREATION), mRefPtr(aRefPtr), mData(aData) |
761 | | , mStride(aStride), mSize(aSize), mFormat(aFormat), mDataOwned(false) |
762 | 0 | { |
763 | 0 | } |
764 | | |
765 | | ~RecordedSourceSurfaceCreation(); |
766 | | |
767 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
768 | | |
769 | | template<class S> void Record(S &aStream) const; |
770 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
771 | | |
772 | 0 | virtual std::string GetName() const override { return "SourceSurface Creation"; } |
773 | 0 | virtual ReferencePtr GetObjectRef() const override { return mRefPtr; } |
774 | | |
775 | | private: |
776 | | friend class RecordedEvent; |
777 | | |
778 | | ReferencePtr mRefPtr; |
779 | | uint8_t *mData; |
780 | | int32_t mStride; |
781 | | IntSize mSize; |
782 | | SurfaceFormat mFormat; |
783 | | bool mDataOwned; |
784 | | |
785 | | template<class S> |
786 | | MOZ_IMPLICIT RecordedSourceSurfaceCreation(S &aStream); |
787 | | }; |
788 | | |
789 | | class RecordedSourceSurfaceDestruction : public RecordedEventDerived<RecordedSourceSurfaceDestruction> { |
790 | | public: |
791 | | MOZ_IMPLICIT RecordedSourceSurfaceDestruction(ReferencePtr aRefPtr) |
792 | | : RecordedEventDerived(SOURCESURFACEDESTRUCTION), mRefPtr(aRefPtr) |
793 | 0 | { |
794 | 0 | } |
795 | | |
796 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
797 | | |
798 | | template<class S> void Record(S &aStream) const; |
799 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
800 | | |
801 | 0 | virtual std::string GetName() const override { return "SourceSurface Destruction"; } |
802 | 0 | virtual ReferencePtr GetObjectRef() const override { return mRefPtr; } |
803 | | |
804 | | private: |
805 | | friend class RecordedEvent; |
806 | | |
807 | | ReferencePtr mRefPtr; |
808 | | |
809 | | template<class S> |
810 | | MOZ_IMPLICIT RecordedSourceSurfaceDestruction(S &aStream); |
811 | | }; |
812 | | |
813 | | class RecordedExternalSurfaceCreation : public RecordedEventDerived<RecordedExternalSurfaceCreation> { |
814 | | public: |
815 | | RecordedExternalSurfaceCreation(ReferencePtr aRefPtr, const uint64_t aKey) |
816 | | : RecordedEventDerived(EXTERNALSURFACECREATION), mRefPtr(aRefPtr), mKey(aKey) |
817 | 0 | { |
818 | 0 | } |
819 | | |
820 | | ~RecordedExternalSurfaceCreation() |
821 | 0 | { |
822 | 0 | } |
823 | | |
824 | | virtual bool PlayEvent(Translator *aTranslator) const; |
825 | | |
826 | | template<class S> void Record(S &aStream) const; |
827 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const; |
828 | | |
829 | 0 | virtual std::string GetName() const { return "SourceSurfaceSharedData Creation"; } |
830 | 0 | virtual ReferencePtr GetObjectRef() const { return mRefPtr; } |
831 | | private: |
832 | | friend class RecordedEvent; |
833 | | |
834 | | ReferencePtr mRefPtr; |
835 | | uint64_t mKey; |
836 | | |
837 | | template<class S> |
838 | | MOZ_IMPLICIT RecordedExternalSurfaceCreation(S &aStream); |
839 | | }; |
840 | | |
841 | | class RecordedFilterNodeCreation : public RecordedEventDerived<RecordedFilterNodeCreation> { |
842 | | public: |
843 | | RecordedFilterNodeCreation(ReferencePtr aRefPtr, FilterType aType) |
844 | | : RecordedEventDerived(FILTERNODECREATION), mRefPtr(aRefPtr), mType(aType) |
845 | 0 | { |
846 | 0 | } |
847 | | |
848 | | ~RecordedFilterNodeCreation(); |
849 | | |
850 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
851 | | |
852 | | template<class S> void Record(S &aStream) const; |
853 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
854 | | |
855 | 0 | virtual std::string GetName() const override { return "FilterNode Creation"; } |
856 | 0 | virtual ReferencePtr GetObjectRef() const override { return mRefPtr; } |
857 | | |
858 | | private: |
859 | | friend class RecordedEvent; |
860 | | |
861 | | ReferencePtr mRefPtr; |
862 | | FilterType mType; |
863 | | |
864 | | template<class S> |
865 | | MOZ_IMPLICIT RecordedFilterNodeCreation(S &aStream); |
866 | | }; |
867 | | |
868 | | class RecordedFilterNodeDestruction : public RecordedEventDerived<RecordedFilterNodeDestruction> { |
869 | | public: |
870 | | MOZ_IMPLICIT RecordedFilterNodeDestruction(ReferencePtr aRefPtr) |
871 | | : RecordedEventDerived(FILTERNODEDESTRUCTION), mRefPtr(aRefPtr) |
872 | 0 | { |
873 | 0 | } |
874 | | |
875 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
876 | | |
877 | | template<class S> void Record(S &aStream) const; |
878 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
879 | | |
880 | 0 | virtual std::string GetName() const override { return "FilterNode Destruction"; } |
881 | 0 | virtual ReferencePtr GetObjectRef() const override { return mRefPtr; } |
882 | | |
883 | | private: |
884 | | friend class RecordedEvent; |
885 | | |
886 | | ReferencePtr mRefPtr; |
887 | | |
888 | | template<class S> |
889 | | MOZ_IMPLICIT RecordedFilterNodeDestruction(S &aStream); |
890 | | }; |
891 | | |
892 | | class RecordedGradientStopsCreation : public RecordedEventDerived<RecordedGradientStopsCreation> { |
893 | | public: |
894 | | RecordedGradientStopsCreation(ReferencePtr aRefPtr, GradientStop *aStops, |
895 | | uint32_t aNumStops, ExtendMode aExtendMode) |
896 | | : RecordedEventDerived(GRADIENTSTOPSCREATION), mRefPtr(aRefPtr), mStops(aStops) |
897 | | , mNumStops(aNumStops), mExtendMode(aExtendMode), mDataOwned(false) |
898 | 0 | { |
899 | 0 | } |
900 | | |
901 | | ~RecordedGradientStopsCreation(); |
902 | | |
903 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
904 | | |
905 | | template<class S> void Record(S &aStream) const; |
906 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
907 | | |
908 | 0 | virtual std::string GetName() const override { return "GradientStops Creation"; } |
909 | 0 | virtual ReferencePtr GetObjectRef() const override { return mRefPtr; } |
910 | | |
911 | | private: |
912 | | friend class RecordedEvent; |
913 | | |
914 | | ReferencePtr mRefPtr; |
915 | | GradientStop *mStops; |
916 | | uint32_t mNumStops; |
917 | | ExtendMode mExtendMode; |
918 | | bool mDataOwned; |
919 | | |
920 | | template<class S> |
921 | | MOZ_IMPLICIT RecordedGradientStopsCreation(S &aStream); |
922 | | }; |
923 | | |
924 | | class RecordedGradientStopsDestruction : public RecordedEventDerived<RecordedGradientStopsDestruction> { |
925 | | public: |
926 | | MOZ_IMPLICIT RecordedGradientStopsDestruction(ReferencePtr aRefPtr) |
927 | | : RecordedEventDerived(GRADIENTSTOPSDESTRUCTION), mRefPtr(aRefPtr) |
928 | 0 | { |
929 | 0 | } |
930 | | |
931 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
932 | | |
933 | | template<class S> void Record(S &aStream) const; |
934 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
935 | | |
936 | 0 | virtual std::string GetName() const override { return "GradientStops Destruction"; } |
937 | 0 | virtual ReferencePtr GetObjectRef() const override { return mRefPtr; } |
938 | | |
939 | | private: |
940 | | friend class RecordedEvent; |
941 | | |
942 | | ReferencePtr mRefPtr; |
943 | | |
944 | | template<class S> |
945 | | MOZ_IMPLICIT RecordedGradientStopsDestruction(S &aStream); |
946 | | }; |
947 | | |
948 | | class RecordedSnapshot : public RecordedEventDerived<RecordedSnapshot> { |
949 | | public: |
950 | | RecordedSnapshot(ReferencePtr aRefPtr, DrawTarget *aDT) |
951 | | : RecordedEventDerived(SNAPSHOT), mRefPtr(aRefPtr), mDT(aDT) |
952 | 0 | { |
953 | 0 | } |
954 | | |
955 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
956 | | |
957 | | template<class S> void Record(S &aStream) const; |
958 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
959 | | |
960 | 0 | virtual std::string GetName() const override { return "Snapshot"; } |
961 | 0 | virtual ReferencePtr GetObjectRef() const override { return mRefPtr; } |
962 | | |
963 | | private: |
964 | | friend class RecordedEvent; |
965 | | |
966 | | ReferencePtr mRefPtr; |
967 | | ReferencePtr mDT; |
968 | | |
969 | | template<class S> |
970 | | MOZ_IMPLICIT RecordedSnapshot(S &aStream); |
971 | | }; |
972 | | |
973 | | class RecordedIntoLuminanceSource : public RecordedEventDerived<RecordedIntoLuminanceSource> { |
974 | | public: |
975 | | RecordedIntoLuminanceSource(ReferencePtr aRefPtr, DrawTarget *aDT, |
976 | | LuminanceType aLuminanceType, float aOpacity) |
977 | | : RecordedEventDerived(INTOLUMINANCE), mRefPtr(aRefPtr), mDT(aDT), |
978 | | mLuminanceType(aLuminanceType), mOpacity(aOpacity) |
979 | 0 | { |
980 | 0 | } |
981 | | |
982 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
983 | | |
984 | | template<class S> void Record(S &aStream) const; |
985 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
986 | | |
987 | 0 | virtual std::string GetName() const override { return "IntoLuminanceSource"; } |
988 | 0 | virtual ReferencePtr GetObjectRef() const override { return mRefPtr; } |
989 | | |
990 | | private: |
991 | | friend class RecordedEvent; |
992 | | |
993 | | ReferencePtr mRefPtr; |
994 | | ReferencePtr mDT; |
995 | | LuminanceType mLuminanceType; |
996 | | float mOpacity; |
997 | | |
998 | | template<class S> |
999 | | MOZ_IMPLICIT RecordedIntoLuminanceSource(S &aStream); |
1000 | | }; |
1001 | | |
1002 | | class RecordedFontData : public RecordedEventDerived<RecordedFontData> { |
1003 | | public: |
1004 | | |
1005 | | static void FontDataProc(const uint8_t *aData, uint32_t aSize, |
1006 | | uint32_t aIndex, void* aBaton) |
1007 | 0 | { |
1008 | 0 | auto recordedFontData = static_cast<RecordedFontData*>(aBaton); |
1009 | 0 | recordedFontData->SetFontData(aData, aSize, aIndex); |
1010 | 0 | } |
1011 | | |
1012 | | explicit RecordedFontData(UnscaledFont *aUnscaledFont) |
1013 | | : RecordedEventDerived(FONTDATA) |
1014 | | , mType(aUnscaledFont->GetType()) |
1015 | | , mData(nullptr) |
1016 | | , mFontDetails() |
1017 | 0 | { |
1018 | 0 | mGetFontFileDataSucceeded = aUnscaledFont->GetFontFileData(&FontDataProc, this) && mData; |
1019 | 0 | } |
1020 | | |
1021 | | ~RecordedFontData(); |
1022 | | |
1023 | 0 | bool IsValid() const { return mGetFontFileDataSucceeded; } |
1024 | | |
1025 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
1026 | | |
1027 | | template<class S> void Record(S &aStream) const; |
1028 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
1029 | | |
1030 | 0 | virtual std::string GetName() const override { return "Font Data"; } |
1031 | 0 | virtual ReferencePtr GetObjectRef() const override { return nullptr; }; |
1032 | | |
1033 | | void SetFontData(const uint8_t *aData, uint32_t aSize, uint32_t aIndex); |
1034 | | |
1035 | | bool GetFontDetails(RecordedFontDetails& fontDetails); |
1036 | | |
1037 | | private: |
1038 | | friend class RecordedEvent; |
1039 | | |
1040 | | FontType mType; |
1041 | | uint8_t* mData; |
1042 | | RecordedFontDetails mFontDetails; |
1043 | | |
1044 | | bool mGetFontFileDataSucceeded; |
1045 | | |
1046 | | template<class S> |
1047 | | MOZ_IMPLICIT RecordedFontData(S &aStream); |
1048 | | }; |
1049 | | |
1050 | | class RecordedFontDescriptor : public RecordedEventDerived<RecordedFontDescriptor> { |
1051 | | public: |
1052 | | |
1053 | | static void FontDescCb(const uint8_t* aData, uint32_t aSize, uint32_t aIndex, |
1054 | | void* aBaton) |
1055 | 0 | { |
1056 | 0 | auto recordedFontDesc = static_cast<RecordedFontDescriptor*>(aBaton); |
1057 | 0 | recordedFontDesc->SetFontDescriptor(aData, aSize, aIndex); |
1058 | 0 | } |
1059 | | |
1060 | | explicit RecordedFontDescriptor(UnscaledFont* aUnscaledFont) |
1061 | | : RecordedEventDerived(FONTDESC) |
1062 | | , mType(aUnscaledFont->GetType()) |
1063 | | , mIndex(0) |
1064 | | , mRefPtr(aUnscaledFont) |
1065 | 0 | { |
1066 | 0 | mHasDesc = aUnscaledFont->GetFontDescriptor(FontDescCb, this); |
1067 | 0 | } |
1068 | | |
1069 | | ~RecordedFontDescriptor(); |
1070 | | |
1071 | 0 | bool IsValid() const { return mHasDesc; } |
1072 | | |
1073 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
1074 | | |
1075 | | template<class S> void Record(S &aStream) const; |
1076 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
1077 | | |
1078 | 0 | virtual std::string GetName() const override { return "Font Desc"; } |
1079 | 0 | virtual ReferencePtr GetObjectRef() const override { return mRefPtr; } |
1080 | | |
1081 | | private: |
1082 | | friend class RecordedEvent; |
1083 | | |
1084 | | void SetFontDescriptor(const uint8_t* aData, uint32_t aSize, uint32_t aIndex); |
1085 | | |
1086 | | bool mHasDesc; |
1087 | | |
1088 | | FontType mType; |
1089 | | std::vector<uint8_t> mData; |
1090 | | uint32_t mIndex; |
1091 | | ReferencePtr mRefPtr; |
1092 | | |
1093 | | template<class S> |
1094 | | MOZ_IMPLICIT RecordedFontDescriptor(S &aStream); |
1095 | | }; |
1096 | | |
1097 | | class RecordedUnscaledFontCreation : public RecordedEventDerived<RecordedUnscaledFontCreation> { |
1098 | | public: |
1099 | | static void FontInstanceDataProc(const uint8_t* aData, uint32_t aSize, void* aBaton) |
1100 | 0 | { |
1101 | 0 | auto recordedUnscaledFontCreation = static_cast<RecordedUnscaledFontCreation*>(aBaton); |
1102 | 0 | recordedUnscaledFontCreation->SetFontInstanceData(aData, aSize); |
1103 | 0 | } |
1104 | | |
1105 | | RecordedUnscaledFontCreation(UnscaledFont* aUnscaledFont, |
1106 | | RecordedFontDetails aFontDetails) |
1107 | | : RecordedEventDerived(UNSCALEDFONTCREATION) |
1108 | | , mRefPtr(aUnscaledFont) |
1109 | | , mFontDataKey(aFontDetails.fontDataKey) |
1110 | | , mIndex(aFontDetails.index) |
1111 | 0 | { |
1112 | 0 | aUnscaledFont->GetFontInstanceData(FontInstanceDataProc, this); |
1113 | 0 | } |
1114 | | |
1115 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
1116 | | |
1117 | | template<class S> void Record(S &aStream) const; |
1118 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
1119 | | |
1120 | 0 | virtual std::string GetName() const override { return "UnscaledFont Creation"; } |
1121 | 0 | virtual ReferencePtr GetObjectRef() const override { return mRefPtr; } |
1122 | | |
1123 | | void SetFontInstanceData(const uint8_t *aData, uint32_t aSize); |
1124 | | |
1125 | | private: |
1126 | | friend class RecordedEvent; |
1127 | | |
1128 | | ReferencePtr mRefPtr; |
1129 | | uint64_t mFontDataKey; |
1130 | | uint32_t mIndex; |
1131 | | std::vector<uint8_t> mInstanceData; |
1132 | | |
1133 | | template<class S> |
1134 | | MOZ_IMPLICIT RecordedUnscaledFontCreation(S &aStream); |
1135 | | }; |
1136 | | |
1137 | | class RecordedUnscaledFontDestruction : public RecordedEventDerived<RecordedUnscaledFontDestruction> { |
1138 | | public: |
1139 | | MOZ_IMPLICIT RecordedUnscaledFontDestruction(ReferencePtr aRefPtr) |
1140 | | : RecordedEventDerived(UNSCALEDFONTDESTRUCTION), mRefPtr(aRefPtr) |
1141 | 0 | {} |
1142 | | |
1143 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
1144 | | template<class S> |
1145 | | void Record(S &aStream) const; |
1146 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
1147 | | |
1148 | 0 | virtual std::string GetName() const override { return "UnscaledFont Destruction"; } |
1149 | 0 | virtual ReferencePtr GetObjectRef() const override { return mRefPtr; } |
1150 | | |
1151 | | private: |
1152 | | friend class RecordedEvent; |
1153 | | |
1154 | | ReferencePtr mRefPtr; |
1155 | | |
1156 | | template<class S> |
1157 | | MOZ_IMPLICIT RecordedUnscaledFontDestruction(S &aStream); |
1158 | | }; |
1159 | | |
1160 | | class RecordedScaledFontCreation : public RecordedEventDerived<RecordedScaledFontCreation> { |
1161 | | public: |
1162 | | |
1163 | | static void FontInstanceDataProc(const uint8_t* aData, uint32_t aSize, |
1164 | | const FontVariation* aVariations, uint32_t aNumVariations, |
1165 | | void* aBaton) |
1166 | 0 | { |
1167 | 0 | auto recordedScaledFontCreation = static_cast<RecordedScaledFontCreation*>(aBaton); |
1168 | 0 | recordedScaledFontCreation->SetFontInstanceData(aData, aSize, aVariations, aNumVariations); |
1169 | 0 | } |
1170 | | |
1171 | | RecordedScaledFontCreation(ScaledFont* aScaledFont, |
1172 | | UnscaledFont* aUnscaledFont) |
1173 | | : RecordedEventDerived(SCALEDFONTCREATION) |
1174 | | , mRefPtr(aScaledFont) |
1175 | | , mUnscaledFont(aUnscaledFont) |
1176 | | , mGlyphSize(aScaledFont->GetSize()) |
1177 | 0 | { |
1178 | 0 | aScaledFont->GetFontInstanceData(FontInstanceDataProc, this); |
1179 | 0 | } |
1180 | | |
1181 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
1182 | | |
1183 | | template<class S> void Record(S &aStream) const; |
1184 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
1185 | | |
1186 | 0 | virtual std::string GetName() const override { return "ScaledFont Creation"; } |
1187 | 0 | virtual ReferencePtr GetObjectRef() const override { return mRefPtr; } |
1188 | | |
1189 | | void SetFontInstanceData(const uint8_t *aData, uint32_t aSize, |
1190 | | const FontVariation* aVariations, uint32_t aNumVariations); |
1191 | | |
1192 | | private: |
1193 | | friend class RecordedEvent; |
1194 | | |
1195 | | ReferencePtr mRefPtr; |
1196 | | ReferencePtr mUnscaledFont; |
1197 | | Float mGlyphSize; |
1198 | | std::vector<uint8_t> mInstanceData; |
1199 | | std::vector<FontVariation> mVariations; |
1200 | | |
1201 | | template<class S> |
1202 | | MOZ_IMPLICIT RecordedScaledFontCreation(S &aStream); |
1203 | | }; |
1204 | | |
1205 | | class RecordedScaledFontDestruction : public RecordedEventDerived<RecordedScaledFontDestruction> { |
1206 | | public: |
1207 | | MOZ_IMPLICIT RecordedScaledFontDestruction(ReferencePtr aRefPtr) |
1208 | | : RecordedEventDerived(SCALEDFONTDESTRUCTION), mRefPtr(aRefPtr) |
1209 | 0 | { |
1210 | 0 | } |
1211 | | |
1212 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
1213 | | |
1214 | | template<class S> |
1215 | | void Record(S &aStream) const; |
1216 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
1217 | | |
1218 | 0 | virtual std::string GetName() const override { return "ScaledFont Destruction"; } |
1219 | 0 | virtual ReferencePtr GetObjectRef() const override { return mRefPtr; } |
1220 | | |
1221 | | private: |
1222 | | friend class RecordedEvent; |
1223 | | |
1224 | | ReferencePtr mRefPtr; |
1225 | | |
1226 | | template<class S> |
1227 | | MOZ_IMPLICIT RecordedScaledFontDestruction(S &aStream); |
1228 | | }; |
1229 | | |
1230 | | class RecordedMaskSurface : public RecordedDrawingEvent<RecordedMaskSurface> { |
1231 | | public: |
1232 | | RecordedMaskSurface(DrawTarget *aDT, const Pattern &aPattern, ReferencePtr aRefMask, |
1233 | | const Point &aOffset, const DrawOptions &aOptions) |
1234 | | : RecordedDrawingEvent(MASKSURFACE, aDT), mPattern(), mRefMask(aRefMask), |
1235 | | mOffset(aOffset), mOptions(aOptions) |
1236 | 0 | { |
1237 | 0 | StorePattern(mPattern, aPattern); |
1238 | 0 | } |
1239 | | |
1240 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
1241 | | |
1242 | | template<class S> void Record(S &aStream) const; |
1243 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
1244 | | |
1245 | 0 | virtual std::string GetName() const override { return "MaskSurface"; } |
1246 | | |
1247 | | private: |
1248 | | friend class RecordedEvent; |
1249 | | |
1250 | | template<class S> |
1251 | | MOZ_IMPLICIT RecordedMaskSurface(S &aStream); |
1252 | | |
1253 | | PatternStorage mPattern; |
1254 | | ReferencePtr mRefMask; |
1255 | | Point mOffset; |
1256 | | DrawOptions mOptions; |
1257 | | }; |
1258 | | |
1259 | | class RecordedFilterNodeSetAttribute : public RecordedEventDerived<RecordedFilterNodeSetAttribute> |
1260 | | { |
1261 | | public: |
1262 | | enum ArgType { |
1263 | | ARGTYPE_UINT32, |
1264 | | ARGTYPE_BOOL, |
1265 | | ARGTYPE_FLOAT, |
1266 | | ARGTYPE_SIZE, |
1267 | | ARGTYPE_INTSIZE, |
1268 | | ARGTYPE_INTPOINT, |
1269 | | ARGTYPE_RECT, |
1270 | | ARGTYPE_INTRECT, |
1271 | | ARGTYPE_POINT, |
1272 | | ARGTYPE_MATRIX, |
1273 | | ARGTYPE_MATRIX5X4, |
1274 | | ARGTYPE_POINT3D, |
1275 | | ARGTYPE_COLOR, |
1276 | | ARGTYPE_FLOAT_ARRAY |
1277 | | }; |
1278 | | |
1279 | | template<typename T> |
1280 | | RecordedFilterNodeSetAttribute(FilterNode *aNode, uint32_t aIndex, T aArgument, ArgType aArgType) |
1281 | | : RecordedEventDerived(FILTERNODESETATTRIBUTE), mNode(aNode), mIndex(aIndex), mArgType(aArgType) |
1282 | 0 | { |
1283 | 0 | mPayload.resize(sizeof(T)); |
1284 | 0 | memcpy(&mPayload.front(), &aArgument, sizeof(T)); |
1285 | 0 | } Unexecuted instantiation: mozilla::gfx::RecordedFilterNodeSetAttribute::RecordedFilterNodeSetAttribute<bool>(mozilla::gfx::FilterNode*, unsigned int, bool, mozilla::gfx::RecordedFilterNodeSetAttribute::ArgType) Unexecuted instantiation: mozilla::gfx::RecordedFilterNodeSetAttribute::RecordedFilterNodeSetAttribute<unsigned int>(mozilla::gfx::FilterNode*, unsigned int, unsigned int, mozilla::gfx::RecordedFilterNodeSetAttribute::ArgType) Unexecuted instantiation: mozilla::gfx::RecordedFilterNodeSetAttribute::RecordedFilterNodeSetAttribute<float>(mozilla::gfx::FilterNode*, unsigned int, float, mozilla::gfx::RecordedFilterNodeSetAttribute::ArgType) Unexecuted instantiation: mozilla::gfx::RecordedFilterNodeSetAttribute::RecordedFilterNodeSetAttribute<mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float> >(mozilla::gfx::FilterNode*, unsigned int, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::RecordedFilterNodeSetAttribute::ArgType) Unexecuted instantiation: mozilla::gfx::RecordedFilterNodeSetAttribute::RecordedFilterNodeSetAttribute<mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits> >(mozilla::gfx::FilterNode*, unsigned int, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::RecordedFilterNodeSetAttribute::ArgType) Unexecuted instantiation: mozilla::gfx::RecordedFilterNodeSetAttribute::RecordedFilterNodeSetAttribute<mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits> >(mozilla::gfx::FilterNode*, unsigned int, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::RecordedFilterNodeSetAttribute::ArgType) Unexecuted instantiation: mozilla::gfx::RecordedFilterNodeSetAttribute::RecordedFilterNodeSetAttribute<mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float> >(mozilla::gfx::FilterNode*, unsigned int, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::RecordedFilterNodeSetAttribute::ArgType) Unexecuted instantiation: mozilla::gfx::RecordedFilterNodeSetAttribute::RecordedFilterNodeSetAttribute<mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> >(mozilla::gfx::FilterNode*, unsigned int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::RecordedFilterNodeSetAttribute::ArgType) Unexecuted instantiation: mozilla::gfx::RecordedFilterNodeSetAttribute::RecordedFilterNodeSetAttribute<mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float> >(mozilla::gfx::FilterNode*, unsigned int, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::RecordedFilterNodeSetAttribute::ArgType) Unexecuted instantiation: mozilla::gfx::RecordedFilterNodeSetAttribute::RecordedFilterNodeSetAttribute<mozilla::gfx::BaseMatrix<float> >(mozilla::gfx::FilterNode*, unsigned int, mozilla::gfx::BaseMatrix<float>, mozilla::gfx::RecordedFilterNodeSetAttribute::ArgType) Unexecuted instantiation: mozilla::gfx::RecordedFilterNodeSetAttribute::RecordedFilterNodeSetAttribute<mozilla::gfx::Matrix5x4>(mozilla::gfx::FilterNode*, unsigned int, mozilla::gfx::Matrix5x4, mozilla::gfx::RecordedFilterNodeSetAttribute::ArgType) Unexecuted instantiation: mozilla::gfx::RecordedFilterNodeSetAttribute::RecordedFilterNodeSetAttribute<mozilla::gfx::Point3DTyped<mozilla::gfx::UnknownUnits, float> >(mozilla::gfx::FilterNode*, unsigned int, mozilla::gfx::Point3DTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::RecordedFilterNodeSetAttribute::ArgType) Unexecuted instantiation: mozilla::gfx::RecordedFilterNodeSetAttribute::RecordedFilterNodeSetAttribute<mozilla::gfx::Color>(mozilla::gfx::FilterNode*, unsigned int, mozilla::gfx::Color, mozilla::gfx::RecordedFilterNodeSetAttribute::ArgType) |
1286 | | |
1287 | | RecordedFilterNodeSetAttribute(FilterNode *aNode, uint32_t aIndex, const Float *aFloat, uint32_t aSize) |
1288 | | : RecordedEventDerived(FILTERNODESETATTRIBUTE), mNode(aNode), mIndex(aIndex), mArgType(ARGTYPE_FLOAT_ARRAY) |
1289 | 0 | { |
1290 | 0 | mPayload.resize(sizeof(Float) * aSize); |
1291 | 0 | memcpy(&mPayload.front(), aFloat, sizeof(Float) * aSize); |
1292 | 0 | } |
1293 | | |
1294 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
1295 | | template<class S> void Record(S &aStream) const; |
1296 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
1297 | | |
1298 | 0 | virtual std::string GetName() const override { return "SetAttribute"; } |
1299 | 0 | virtual ReferencePtr GetObjectRef() const override { return mNode; } |
1300 | | |
1301 | | private: |
1302 | | friend class RecordedEvent; |
1303 | | |
1304 | | ReferencePtr mNode; |
1305 | | |
1306 | | uint32_t mIndex; |
1307 | | ArgType mArgType; |
1308 | | std::vector<uint8_t> mPayload; |
1309 | | |
1310 | | template<class S> |
1311 | | MOZ_IMPLICIT RecordedFilterNodeSetAttribute(S &aStream); |
1312 | | }; |
1313 | | |
1314 | | class RecordedFilterNodeSetInput : public RecordedEventDerived<RecordedFilterNodeSetInput> |
1315 | | { |
1316 | | public: |
1317 | | RecordedFilterNodeSetInput(FilterNode* aNode, uint32_t aIndex, FilterNode* aInputNode) |
1318 | | : RecordedEventDerived(FILTERNODESETINPUT), mNode(aNode), mIndex(aIndex) |
1319 | | , mInputFilter(aInputNode), mInputSurface(nullptr) |
1320 | 0 | { |
1321 | 0 | } |
1322 | | |
1323 | | RecordedFilterNodeSetInput(FilterNode *aNode, uint32_t aIndex, SourceSurface *aInputSurface) |
1324 | | : RecordedEventDerived(FILTERNODESETINPUT), mNode(aNode), mIndex(aIndex) |
1325 | | , mInputFilter(nullptr), mInputSurface(aInputSurface) |
1326 | 0 | { |
1327 | 0 | } |
1328 | | |
1329 | | virtual bool PlayEvent(Translator *aTranslator) const override; |
1330 | | template<class S> void Record(S &aStream) const; |
1331 | | virtual void OutputSimpleEventInfo(std::stringstream &aStringStream) const override; |
1332 | | |
1333 | 0 | virtual std::string GetName() const override { return "SetInput"; } |
1334 | 0 | virtual ReferencePtr GetObjectRef() const override { return mNode; } |
1335 | | |
1336 | | private: |
1337 | | friend class RecordedEvent; |
1338 | | |
1339 | | ReferencePtr mNode; |
1340 | | uint32_t mIndex; |
1341 | | ReferencePtr mInputFilter; |
1342 | | ReferencePtr mInputSurface; |
1343 | | |
1344 | | template<class S> |
1345 | | MOZ_IMPLICIT RecordedFilterNodeSetInput(S &aStream); |
1346 | | }; |
1347 | | |
1348 | | static std::string NameFromBackend(BackendType aType) |
1349 | | { |
1350 | | switch (aType) { |
1351 | | case BackendType::NONE: |
1352 | | return "None"; |
1353 | | case BackendType::DIRECT2D: |
1354 | | return "Direct2D"; |
1355 | | default: |
1356 | | return "Unknown"; |
1357 | | } |
1358 | | } |
1359 | | |
1360 | | template<class S> |
1361 | | void |
1362 | | RecordedEvent::RecordPatternData(S &aStream, const PatternStorage &aPattern) const |
1363 | | { |
1364 | | WriteElement(aStream, aPattern.mType); |
1365 | | |
1366 | | switch (aPattern.mType) { |
1367 | | case PatternType::COLOR: |
1368 | | { |
1369 | | WriteElement(aStream, *reinterpret_cast<const ColorPatternStorage*>(&aPattern.mStorage)); |
1370 | | return; |
1371 | | } |
1372 | | case PatternType::LINEAR_GRADIENT: |
1373 | | { |
1374 | | WriteElement(aStream, *reinterpret_cast<const LinearGradientPatternStorage*>(&aPattern.mStorage)); |
1375 | | return; |
1376 | | } |
1377 | | case PatternType::RADIAL_GRADIENT: |
1378 | | { |
1379 | | WriteElement(aStream, *reinterpret_cast<const RadialGradientPatternStorage*>(&aPattern.mStorage)); |
1380 | | return; |
1381 | | } |
1382 | | case PatternType::SURFACE: |
1383 | | { |
1384 | | WriteElement(aStream, *reinterpret_cast<const SurfacePatternStorage*>(&aPattern.mStorage)); |
1385 | | return; |
1386 | | } |
1387 | | default: |
1388 | | return; |
1389 | | } |
1390 | | } |
1391 | | |
1392 | | template<class S> |
1393 | | void |
1394 | | RecordedEvent::ReadPatternData(S &aStream, PatternStorage &aPattern) const |
1395 | | { |
1396 | | ReadElement(aStream, aPattern.mType); |
1397 | | |
1398 | | switch (aPattern.mType) { |
1399 | | case PatternType::COLOR: |
1400 | | { |
1401 | | ReadElement(aStream, *reinterpret_cast<ColorPatternStorage*>(&aPattern.mStorage)); |
1402 | | return; |
1403 | | } |
1404 | | case PatternType::LINEAR_GRADIENT: |
1405 | | { |
1406 | | ReadElement(aStream, *reinterpret_cast<LinearGradientPatternStorage*>(&aPattern.mStorage)); |
1407 | | return; |
1408 | | } |
1409 | | case PatternType::RADIAL_GRADIENT: |
1410 | | { |
1411 | | ReadElement(aStream, *reinterpret_cast<RadialGradientPatternStorage*>(&aPattern.mStorage)); |
1412 | | return; |
1413 | | } |
1414 | | case PatternType::SURFACE: |
1415 | | { |
1416 | | ReadElement(aStream, *reinterpret_cast<SurfacePatternStorage*>(&aPattern.mStorage)); |
1417 | | return; |
1418 | | } |
1419 | | default: |
1420 | | return; |
1421 | | } |
1422 | | } |
1423 | | |
1424 | | inline void |
1425 | | RecordedEvent::StorePattern(PatternStorage &aDestination, const Pattern &aSource) const |
1426 | | { |
1427 | | aDestination.mType = aSource.GetType(); |
1428 | | |
1429 | | switch (aSource.GetType()) { |
1430 | | case PatternType::COLOR: |
1431 | | { |
1432 | | reinterpret_cast<ColorPatternStorage*>(&aDestination.mStorage)->mColor = |
1433 | | static_cast<const ColorPattern*>(&aSource)->mColor; |
1434 | | return; |
1435 | | } |
1436 | | case PatternType::LINEAR_GRADIENT: |
1437 | | { |
1438 | | LinearGradientPatternStorage *store = |
1439 | | reinterpret_cast<LinearGradientPatternStorage*>(&aDestination.mStorage); |
1440 | | const LinearGradientPattern *pat = |
1441 | | static_cast<const LinearGradientPattern*>(&aSource); |
1442 | | store->mBegin = pat->mBegin; |
1443 | | store->mEnd = pat->mEnd; |
1444 | | store->mMatrix = pat->mMatrix; |
1445 | | store->mStops = pat->mStops.get(); |
1446 | | return; |
1447 | | } |
1448 | | case PatternType::RADIAL_GRADIENT: |
1449 | | { |
1450 | | RadialGradientPatternStorage *store = |
1451 | | reinterpret_cast<RadialGradientPatternStorage*>(&aDestination.mStorage); |
1452 | | const RadialGradientPattern *pat = |
1453 | | static_cast<const RadialGradientPattern*>(&aSource); |
1454 | | store->mCenter1 = pat->mCenter1; |
1455 | | store->mCenter2 = pat->mCenter2; |
1456 | | store->mRadius1 = pat->mRadius1; |
1457 | | store->mRadius2 = pat->mRadius2; |
1458 | | store->mMatrix = pat->mMatrix; |
1459 | | store->mStops = pat->mStops.get(); |
1460 | | return; |
1461 | | } |
1462 | | case PatternType::SURFACE: |
1463 | | { |
1464 | | SurfacePatternStorage *store = |
1465 | | reinterpret_cast<SurfacePatternStorage*>(&aDestination.mStorage); |
1466 | | const SurfacePattern *pat = |
1467 | | static_cast<const SurfacePattern*>(&aSource); |
1468 | | store->mExtend = pat->mExtendMode; |
1469 | | store->mSamplingFilter = pat->mSamplingFilter; |
1470 | | store->mMatrix = pat->mMatrix; |
1471 | | store->mSurface = pat->mSurface; |
1472 | | store->mSamplingRect = pat->mSamplingRect; |
1473 | | return; |
1474 | | } |
1475 | | } |
1476 | | } |
1477 | | |
1478 | | template<class S> |
1479 | | void |
1480 | | RecordedEvent::RecordStrokeOptions(S &aStream, const StrokeOptions &aStrokeOptions) const |
1481 | 0 | { |
1482 | 0 | JoinStyle joinStyle = aStrokeOptions.mLineJoin; |
1483 | 0 | CapStyle capStyle = aStrokeOptions.mLineCap; |
1484 | 0 |
|
1485 | 0 | WriteElement(aStream, uint64_t(aStrokeOptions.mDashLength)); |
1486 | 0 | WriteElement(aStream, aStrokeOptions.mDashOffset); |
1487 | 0 | WriteElement(aStream, aStrokeOptions.mLineWidth); |
1488 | 0 | WriteElement(aStream, aStrokeOptions.mMiterLimit); |
1489 | 0 | WriteElement(aStream, joinStyle); |
1490 | 0 | WriteElement(aStream, capStyle); |
1491 | 0 |
|
1492 | 0 | if (!aStrokeOptions.mDashPattern) { |
1493 | 0 | return; |
1494 | 0 | } |
1495 | 0 | |
1496 | 0 | aStream.write((char*)aStrokeOptions.mDashPattern, sizeof(Float) * aStrokeOptions.mDashLength); |
1497 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedEvent::RecordStrokeOptions<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, mozilla::gfx::StrokeOptions const&) const Unexecuted instantiation: void mozilla::gfx::RecordedEvent::RecordStrokeOptions<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&, mozilla::gfx::StrokeOptions const&) const Unexecuted instantiation: void mozilla::gfx::RecordedEvent::RecordStrokeOptions<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&, mozilla::gfx::StrokeOptions const&) const Unexecuted instantiation: void mozilla::gfx::RecordedEvent::RecordStrokeOptions<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&, mozilla::gfx::StrokeOptions const&) const |
1498 | | |
1499 | | template<class S> |
1500 | | void |
1501 | | RecordedEvent::ReadStrokeOptions(S &aStream, StrokeOptions &aStrokeOptions) |
1502 | 0 | { |
1503 | 0 | uint64_t dashLength; |
1504 | 0 | JoinStyle joinStyle; |
1505 | 0 | CapStyle capStyle; |
1506 | 0 |
|
1507 | 0 | ReadElement(aStream, dashLength); |
1508 | 0 | ReadElement(aStream, aStrokeOptions.mDashOffset); |
1509 | 0 | ReadElement(aStream, aStrokeOptions.mLineWidth); |
1510 | 0 | ReadElement(aStream, aStrokeOptions.mMiterLimit); |
1511 | 0 | ReadElement(aStream, joinStyle); |
1512 | 0 | ReadElement(aStream, capStyle); |
1513 | 0 | // On 32 bit we truncate the value of dashLength. |
1514 | 0 | // See also bug 811850 for history. |
1515 | 0 | aStrokeOptions.mDashLength = size_t(dashLength); |
1516 | 0 | aStrokeOptions.mLineJoin = joinStyle; |
1517 | 0 | aStrokeOptions.mLineCap = capStyle; |
1518 | 0 |
|
1519 | 0 | if (!aStrokeOptions.mDashLength) { |
1520 | 0 | return; |
1521 | 0 | } |
1522 | 0 | |
1523 | 0 | mDashPatternStorage.resize(aStrokeOptions.mDashLength); |
1524 | 0 | aStrokeOptions.mDashPattern = &mDashPatternStorage.front(); |
1525 | 0 | aStream.read((char*)aStrokeOptions.mDashPattern, sizeof(Float) * aStrokeOptions.mDashLength); |
1526 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:void mozilla::gfx::RecordedEvent::ReadStrokeOptions<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&, mozilla::gfx::StrokeOptions&) Unexecuted instantiation: void mozilla::gfx::RecordedEvent::ReadStrokeOptions<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&, mozilla::gfx::StrokeOptions&) Unexecuted instantiation: void mozilla::gfx::RecordedEvent::ReadStrokeOptions<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&, mozilla::gfx::StrokeOptions&) |
1527 | | |
1528 | | inline void |
1529 | | RecordedEvent::OutputSimplePatternInfo(const PatternStorage &aStorage, std::stringstream &aOutput) const |
1530 | | { |
1531 | | switch (aStorage.mType) { |
1532 | | case PatternType::COLOR: |
1533 | | { |
1534 | | const Color color = reinterpret_cast<const ColorPatternStorage*>(&aStorage.mStorage)->mColor; |
1535 | | aOutput << "Color: (" << color.r << ", " << color.g << ", " << color.b << ", " << color.a << ")"; |
1536 | | return; |
1537 | | } |
1538 | | case PatternType::LINEAR_GRADIENT: |
1539 | | { |
1540 | | const LinearGradientPatternStorage *store = |
1541 | | reinterpret_cast<const LinearGradientPatternStorage*>(&aStorage.mStorage); |
1542 | | |
1543 | | aOutput << "LinearGradient (" << store->mBegin.x << ", " << store->mBegin.y << |
1544 | | ") - (" << store->mEnd.x << ", " << store->mEnd.y << ") Stops: " << store->mStops; |
1545 | | return; |
1546 | | } |
1547 | | case PatternType::RADIAL_GRADIENT: |
1548 | | { |
1549 | | const RadialGradientPatternStorage *store = |
1550 | | reinterpret_cast<const RadialGradientPatternStorage*>(&aStorage.mStorage); |
1551 | | aOutput << "RadialGradient (Center 1: (" << store->mCenter1.x << ", " << |
1552 | | store->mCenter2.y << ") Radius 2: " << store->mRadius2; |
1553 | | return; |
1554 | | } |
1555 | | case PatternType::SURFACE: |
1556 | | { |
1557 | | const SurfacePatternStorage *store = |
1558 | | reinterpret_cast<const SurfacePatternStorage*>(&aStorage.mStorage); |
1559 | | aOutput << "Surface (0x" << store->mSurface << ")"; |
1560 | | return; |
1561 | | } |
1562 | | } |
1563 | | } |
1564 | | |
1565 | | template<class T> |
1566 | | template<class S> |
1567 | | RecordedDrawingEvent<T>::RecordedDrawingEvent(RecordedEvent::EventType aType, S &aStream) |
1568 | | : RecordedEventDerived<T>(aType) |
1569 | 0 | { |
1570 | 0 | ReadElement(aStream, mDT); |
1571 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFillRect>::RecordedDrawingEvent<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStrokeRect>::RecordedDrawingEvent<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStrokeLine>::RecordedDrawingEvent<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedClearRect>::RecordedDrawingEvent<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedCopySurface>::RecordedDrawingEvent<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedSetTransform>::RecordedDrawingEvent<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushClipRect>::RecordedDrawingEvent<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushClip>::RecordedDrawingEvent<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPopClip>::RecordedDrawingEvent<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFill>::RecordedDrawingEvent<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFillGlyphs>::RecordedDrawingEvent<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedMask>::RecordedDrawingEvent<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStroke>::RecordedDrawingEvent<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawSurface>::RecordedDrawingEvent<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawSurfaceWithShadow>::RecordedDrawingEvent<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawFilter>::RecordedDrawingEvent<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedMaskSurface>::RecordedDrawingEvent<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushLayer>::RecordedDrawingEvent<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushLayerWithBlend>::RecordedDrawingEvent<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPopLayer>::RecordedDrawingEvent<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFillRect>::RecordedDrawingEvent<std::__1::basic_istream<char, std::__1::char_traits<char> > >(mozilla::gfx::RecordedEvent::EventType, std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStrokeRect>::RecordedDrawingEvent<std::__1::basic_istream<char, std::__1::char_traits<char> > >(mozilla::gfx::RecordedEvent::EventType, std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStrokeLine>::RecordedDrawingEvent<std::__1::basic_istream<char, std::__1::char_traits<char> > >(mozilla::gfx::RecordedEvent::EventType, std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedClearRect>::RecordedDrawingEvent<std::__1::basic_istream<char, std::__1::char_traits<char> > >(mozilla::gfx::RecordedEvent::EventType, std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedCopySurface>::RecordedDrawingEvent<std::__1::basic_istream<char, std::__1::char_traits<char> > >(mozilla::gfx::RecordedEvent::EventType, std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedSetTransform>::RecordedDrawingEvent<std::__1::basic_istream<char, std::__1::char_traits<char> > >(mozilla::gfx::RecordedEvent::EventType, std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushClipRect>::RecordedDrawingEvent<std::__1::basic_istream<char, std::__1::char_traits<char> > >(mozilla::gfx::RecordedEvent::EventType, std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushClip>::RecordedDrawingEvent<std::__1::basic_istream<char, std::__1::char_traits<char> > >(mozilla::gfx::RecordedEvent::EventType, std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPopClip>::RecordedDrawingEvent<std::__1::basic_istream<char, std::__1::char_traits<char> > >(mozilla::gfx::RecordedEvent::EventType, std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFill>::RecordedDrawingEvent<std::__1::basic_istream<char, std::__1::char_traits<char> > >(mozilla::gfx::RecordedEvent::EventType, std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFillGlyphs>::RecordedDrawingEvent<std::__1::basic_istream<char, std::__1::char_traits<char> > >(mozilla::gfx::RecordedEvent::EventType, std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedMask>::RecordedDrawingEvent<std::__1::basic_istream<char, std::__1::char_traits<char> > >(mozilla::gfx::RecordedEvent::EventType, std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStroke>::RecordedDrawingEvent<std::__1::basic_istream<char, std::__1::char_traits<char> > >(mozilla::gfx::RecordedEvent::EventType, std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawSurface>::RecordedDrawingEvent<std::__1::basic_istream<char, std::__1::char_traits<char> > >(mozilla::gfx::RecordedEvent::EventType, std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawSurfaceWithShadow>::RecordedDrawingEvent<std::__1::basic_istream<char, std::__1::char_traits<char> > >(mozilla::gfx::RecordedEvent::EventType, std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawFilter>::RecordedDrawingEvent<std::__1::basic_istream<char, std::__1::char_traits<char> > >(mozilla::gfx::RecordedEvent::EventType, std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedMaskSurface>::RecordedDrawingEvent<std::__1::basic_istream<char, std::__1::char_traits<char> > >(mozilla::gfx::RecordedEvent::EventType, std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushLayer>::RecordedDrawingEvent<std::__1::basic_istream<char, std::__1::char_traits<char> > >(mozilla::gfx::RecordedEvent::EventType, std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushLayerWithBlend>::RecordedDrawingEvent<std::__1::basic_istream<char, std::__1::char_traits<char> > >(mozilla::gfx::RecordedEvent::EventType, std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPopLayer>::RecordedDrawingEvent<std::__1::basic_istream<char, std::__1::char_traits<char> > >(mozilla::gfx::RecordedEvent::EventType, std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFillRect>::RecordedDrawingEvent<mozilla::gfx::EventStream>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::EventStream&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStrokeRect>::RecordedDrawingEvent<mozilla::gfx::EventStream>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::EventStream&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStrokeLine>::RecordedDrawingEvent<mozilla::gfx::EventStream>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::EventStream&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedClearRect>::RecordedDrawingEvent<mozilla::gfx::EventStream>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::EventStream&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedCopySurface>::RecordedDrawingEvent<mozilla::gfx::EventStream>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::EventStream&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedSetTransform>::RecordedDrawingEvent<mozilla::gfx::EventStream>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::EventStream&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushClipRect>::RecordedDrawingEvent<mozilla::gfx::EventStream>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::EventStream&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushClip>::RecordedDrawingEvent<mozilla::gfx::EventStream>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::EventStream&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPopClip>::RecordedDrawingEvent<mozilla::gfx::EventStream>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::EventStream&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFill>::RecordedDrawingEvent<mozilla::gfx::EventStream>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::EventStream&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFillGlyphs>::RecordedDrawingEvent<mozilla::gfx::EventStream>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::EventStream&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedMask>::RecordedDrawingEvent<mozilla::gfx::EventStream>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::EventStream&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStroke>::RecordedDrawingEvent<mozilla::gfx::EventStream>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::EventStream&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawSurface>::RecordedDrawingEvent<mozilla::gfx::EventStream>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::EventStream&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawSurfaceWithShadow>::RecordedDrawingEvent<mozilla::gfx::EventStream>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::EventStream&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawFilter>::RecordedDrawingEvent<mozilla::gfx::EventStream>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::EventStream&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedMaskSurface>::RecordedDrawingEvent<mozilla::gfx::EventStream>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::EventStream&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushLayer>::RecordedDrawingEvent<mozilla::gfx::EventStream>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::EventStream&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushLayerWithBlend>::RecordedDrawingEvent<mozilla::gfx::EventStream>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::EventStream&) Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPopLayer>::RecordedDrawingEvent<mozilla::gfx::EventStream>(mozilla::gfx::RecordedEvent::EventType, mozilla::gfx::EventStream&) |
1572 | | |
1573 | | template<class T> |
1574 | | template<class S> |
1575 | | void |
1576 | | RecordedDrawingEvent<T>::Record(S &aStream) const |
1577 | 0 | { |
1578 | 0 | WriteElement(aStream, mDT); |
1579 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFillRect>::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFillRect>::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFillRect>::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFillRect>::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStrokeRect>::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStrokeRect>::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStrokeRect>::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStrokeRect>::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStrokeLine>::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStrokeLine>::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStrokeLine>::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStrokeLine>::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFill>::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFill>::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFill>::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFill>::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFillGlyphs>::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFillGlyphs>::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFillGlyphs>::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFillGlyphs>::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedMask>::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedMask>::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedMask>::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedMask>::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStroke>::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStroke>::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStroke>::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStroke>::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedClearRect>::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedClearRect>::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedClearRect>::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedClearRect>::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedCopySurface>::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedCopySurface>::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedCopySurface>::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedCopySurface>::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushClip>::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushClip>::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushClip>::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushClip>::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushClipRect>::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushClipRect>::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushClipRect>::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushClipRect>::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPopClip>::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPopClip>::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPopClip>::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPopClip>::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushLayer>::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushLayer>::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushLayer>::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushLayer>::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushLayerWithBlend>::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushLayerWithBlend>::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushLayerWithBlend>::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushLayerWithBlend>::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPopLayer>::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPopLayer>::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPopLayer>::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPopLayer>::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedSetTransform>::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedSetTransform>::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedSetTransform>::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedSetTransform>::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawSurface>::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawSurface>::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawSurface>::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawSurface>::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawSurfaceWithShadow>::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawSurfaceWithShadow>::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawSurfaceWithShadow>::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawSurfaceWithShadow>::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawFilter>::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawFilter>::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawFilter>::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawFilter>::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedMaskSurface>::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedMaskSurface>::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedMaskSurface>::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedMaskSurface>::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
1580 | | |
1581 | | template<class T> |
1582 | | ReferencePtr |
1583 | | RecordedDrawingEvent<T>::GetObjectRef() const |
1584 | 0 | { |
1585 | 0 | return mDT; |
1586 | 0 | } Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFillRect>::GetObjectRef() const Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStrokeRect>::GetObjectRef() const Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStrokeLine>::GetObjectRef() const Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFill>::GetObjectRef() const Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedFillGlyphs>::GetObjectRef() const Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedMask>::GetObjectRef() const Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedStroke>::GetObjectRef() const Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedClearRect>::GetObjectRef() const Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedCopySurface>::GetObjectRef() const Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushClip>::GetObjectRef() const Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushClipRect>::GetObjectRef() const Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPopClip>::GetObjectRef() const Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushLayer>::GetObjectRef() const Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPushLayerWithBlend>::GetObjectRef() const Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedPopLayer>::GetObjectRef() const Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedSetTransform>::GetObjectRef() const Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawSurface>::GetObjectRef() const Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawSurfaceWithShadow>::GetObjectRef() const Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedDrawFilter>::GetObjectRef() const Unexecuted instantiation: mozilla::gfx::RecordedDrawingEvent<mozilla::gfx::RecordedMaskSurface>::GetObjectRef() const |
1587 | | |
1588 | | inline bool |
1589 | | RecordedDrawTargetCreation::PlayEvent(Translator *aTranslator) const |
1590 | 0 | { |
1591 | 0 | RefPtr<DrawTarget> newDT = |
1592 | 0 | aTranslator->CreateDrawTarget(mRefPtr, mSize, mFormat); |
1593 | 0 |
|
1594 | 0 | // If we couldn't create a DrawTarget this will probably cause us to crash |
1595 | 0 | // with nullptr later in the playback, so return false to abort. |
1596 | 0 | if (!newDT) { |
1597 | 0 | return false; |
1598 | 0 | } |
1599 | 0 | |
1600 | 0 | if (mHasExistingData) { |
1601 | 0 | Rect dataRect(0, 0, mExistingData->GetSize().width, mExistingData->GetSize().height); |
1602 | 0 | newDT->DrawSurface(mExistingData, dataRect, dataRect); |
1603 | 0 | } |
1604 | 0 |
|
1605 | 0 | return true; |
1606 | 0 | } |
1607 | | |
1608 | | template<class S> |
1609 | | void |
1610 | | RecordedDrawTargetCreation::Record(S &aStream) const |
1611 | 0 | { |
1612 | 0 | WriteElement(aStream, mRefPtr); |
1613 | 0 | WriteElement(aStream, mBackendType); |
1614 | 0 | WriteElement(aStream, mSize); |
1615 | 0 | WriteElement(aStream, mFormat); |
1616 | 0 | WriteElement(aStream, mHasExistingData); |
1617 | 0 |
|
1618 | 0 | if (mHasExistingData) { |
1619 | 0 | MOZ_ASSERT(mExistingData); |
1620 | 0 | MOZ_ASSERT(mExistingData->GetSize() == mSize); |
1621 | 0 | RefPtr<DataSourceSurface> dataSurf = mExistingData->GetDataSurface(); |
1622 | 0 |
|
1623 | 0 | DataSourceSurface::ScopedMap map(dataSurf, DataSourceSurface::READ); |
1624 | 0 | for (int y = 0; y < mSize.height; y++) { |
1625 | 0 | aStream.write((const char*)map.GetData() + y * map.GetStride(), |
1626 | 0 | BytesPerPixel(mFormat) * mSize.width); |
1627 | 0 | } |
1628 | 0 | } |
1629 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedDrawTargetCreation::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawTargetCreation::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawTargetCreation::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawTargetCreation::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
1630 | | |
1631 | | template<class S> |
1632 | | RecordedDrawTargetCreation::RecordedDrawTargetCreation(S &aStream) |
1633 | | : RecordedEventDerived(DRAWTARGETCREATION) |
1634 | | , mExistingData(nullptr) |
1635 | 0 | { |
1636 | 0 | ReadElement(aStream, mRefPtr); |
1637 | 0 | ReadElement(aStream, mBackendType); |
1638 | 0 | ReadElement(aStream, mSize); |
1639 | 0 | ReadElement(aStream, mFormat); |
1640 | 0 | ReadElement(aStream, mHasExistingData); |
1641 | 0 |
|
1642 | 0 | if (mHasExistingData) { |
1643 | 0 | RefPtr<DataSourceSurface> dataSurf = Factory::CreateDataSourceSurface(mSize, mFormat); |
1644 | 0 | if (!dataSurf) { |
1645 | 0 | gfxWarning() << "RecordedDrawTargetCreation had to reset mHasExistingData"; |
1646 | 0 | mHasExistingData = false; |
1647 | 0 | return; |
1648 | 0 | } |
1649 | 0 |
|
1650 | 0 | DataSourceSurface::ScopedMap map(dataSurf, DataSourceSurface::READ); |
1651 | 0 | for (int y = 0; y < mSize.height; y++) { |
1652 | 0 | aStream.read((char*)map.GetData() + y * map.GetStride(), |
1653 | 0 | BytesPerPixel(mFormat) * mSize.width); |
1654 | 0 | } |
1655 | 0 | mExistingData = dataSurf; |
1656 | 0 | } |
1657 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawTargetCreation::RecordedDrawTargetCreation<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedDrawTargetCreation::RecordedDrawTargetCreation<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawTargetCreation::RecordedDrawTargetCreation<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
1658 | | |
1659 | | inline void |
1660 | | RecordedDrawTargetCreation::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
1661 | 0 | { |
1662 | 0 | aStringStream << "[" << mRefPtr << "] DrawTarget Creation (Type: " << NameFromBackend(mBackendType) << ", Size: " << mSize.width << "x" << mSize.height << ")"; |
1663 | 0 | } |
1664 | | |
1665 | | |
1666 | | inline bool |
1667 | | RecordedDrawTargetDestruction::PlayEvent(Translator *aTranslator) const |
1668 | 0 | { |
1669 | 0 | aTranslator->RemoveDrawTarget(mRefPtr); |
1670 | 0 | return true; |
1671 | 0 | } |
1672 | | |
1673 | | template<class S> |
1674 | | void |
1675 | | RecordedDrawTargetDestruction::Record(S &aStream) const |
1676 | 0 | { |
1677 | 0 | WriteElement(aStream, mRefPtr); |
1678 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedDrawTargetDestruction::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawTargetDestruction::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawTargetDestruction::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawTargetDestruction::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
1679 | | |
1680 | | template<class S> |
1681 | | RecordedDrawTargetDestruction::RecordedDrawTargetDestruction(S &aStream) |
1682 | | : RecordedEventDerived(DRAWTARGETDESTRUCTION) |
1683 | 0 | { |
1684 | 0 | ReadElement(aStream, mRefPtr); |
1685 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawTargetDestruction::RecordedDrawTargetDestruction<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedDrawTargetDestruction::RecordedDrawTargetDestruction<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawTargetDestruction::RecordedDrawTargetDestruction<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
1686 | | |
1687 | | inline void |
1688 | | RecordedDrawTargetDestruction::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
1689 | 0 | { |
1690 | 0 | aStringStream << "[" << mRefPtr << "] DrawTarget Destruction"; |
1691 | 0 | } |
1692 | | |
1693 | | inline bool |
1694 | | RecordedCreateSimilarDrawTarget::PlayEvent(Translator *aTranslator) const |
1695 | 0 | { |
1696 | 0 | RefPtr<DrawTarget> newDT = |
1697 | 0 | aTranslator->GetReferenceDrawTarget()->CreateSimilarDrawTarget(mSize, mFormat); |
1698 | 0 |
|
1699 | 0 | // If we couldn't create a DrawTarget this will probably cause us to crash |
1700 | 0 | // with nullptr later in the playback, so return false to abort. |
1701 | 0 | if (!newDT) { |
1702 | 0 | return false; |
1703 | 0 | } |
1704 | 0 | |
1705 | 0 | aTranslator->AddDrawTarget(mRefPtr, newDT); |
1706 | 0 | return true; |
1707 | 0 | } |
1708 | | |
1709 | | template<class S> |
1710 | | void |
1711 | | RecordedCreateSimilarDrawTarget::Record(S &aStream) const |
1712 | 0 | { |
1713 | 0 | WriteElement(aStream, mRefPtr); |
1714 | 0 | WriteElement(aStream, mSize); |
1715 | 0 | WriteElement(aStream, mFormat); |
1716 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedCreateSimilarDrawTarget::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedCreateSimilarDrawTarget::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedCreateSimilarDrawTarget::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedCreateSimilarDrawTarget::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
1717 | | |
1718 | | template<class S> |
1719 | | RecordedCreateSimilarDrawTarget::RecordedCreateSimilarDrawTarget(S &aStream) |
1720 | | : RecordedEventDerived(CREATESIMILARDRAWTARGET) |
1721 | 0 | { |
1722 | 0 | ReadElement(aStream, mRefPtr); |
1723 | 0 | ReadElement(aStream, mSize); |
1724 | 0 | ReadElement(aStream, mFormat); |
1725 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedCreateSimilarDrawTarget::RecordedCreateSimilarDrawTarget<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedCreateSimilarDrawTarget::RecordedCreateSimilarDrawTarget<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedCreateSimilarDrawTarget::RecordedCreateSimilarDrawTarget<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
1726 | | |
1727 | | inline void |
1728 | | RecordedCreateSimilarDrawTarget::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
1729 | 0 | { |
1730 | 0 | aStringStream << "[" << mRefPtr << "] CreateSimilarDrawTarget (Size: " << mSize.width << "x" << mSize.height << ")"; |
1731 | 0 | } |
1732 | | |
1733 | | inline bool |
1734 | | RecordedCreateClippedDrawTarget::PlayEvent(Translator *aTranslator) const |
1735 | 0 | { |
1736 | 0 | const IntRect baseRect = aTranslator->GetReferenceDrawTarget()->GetRect(); |
1737 | 0 | const IntRect transformedRect = RoundedToInt(mTransform.Inverse().TransformBounds(IntRectToRect(baseRect))); |
1738 | 0 | const IntRect intersection = IntRect(IntPoint(0, 0), mMaxSize).Intersect(transformedRect); |
1739 | 0 |
|
1740 | 0 | RefPtr<DrawTarget> newDT = aTranslator->GetReferenceDrawTarget()->CreateSimilarDrawTarget(intersection.Size(), SurfaceFormat::A8); |
1741 | 0 | // It's overkill to use a TiledDrawTarget for a single tile |
1742 | 0 | // but it was the easiest way to get the offset handling working |
1743 | 0 | gfx::TileSet tileset; |
1744 | 0 | gfx::Tile tile; |
1745 | 0 | tile.mDrawTarget = newDT; |
1746 | 0 | tile.mTileOrigin = gfx::IntPoint(intersection.X(), intersection.Y()); |
1747 | 0 | tileset.mTiles = &tile; |
1748 | 0 | tileset.mTileCount = 1; |
1749 | 0 | newDT = gfx::Factory::CreateTiledDrawTarget(tileset); |
1750 | 0 |
|
1751 | 0 | // If we couldn't create a DrawTarget this will probably cause us to crash |
1752 | 0 | // with nullptr later in the playback, so return false to abort. |
1753 | 0 | if (!newDT) { |
1754 | 0 | return false; |
1755 | 0 | } |
1756 | 0 | |
1757 | 0 | aTranslator->AddDrawTarget(mRefPtr, newDT); |
1758 | 0 | return true; |
1759 | 0 | } |
1760 | | |
1761 | | template<class S> |
1762 | | void |
1763 | | RecordedCreateClippedDrawTarget::Record(S &aStream) const |
1764 | 0 | { |
1765 | 0 | WriteElement(aStream, mRefPtr); |
1766 | 0 | WriteElement(aStream, mMaxSize); |
1767 | 0 | WriteElement(aStream, mTransform); |
1768 | 0 | WriteElement(aStream, mFormat); |
1769 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedCreateClippedDrawTarget::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedCreateClippedDrawTarget::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedCreateClippedDrawTarget::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedCreateClippedDrawTarget::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
1770 | | |
1771 | | template<class S> |
1772 | | RecordedCreateClippedDrawTarget::RecordedCreateClippedDrawTarget(S &aStream) |
1773 | | : RecordedEventDerived(CREATECLIPPEDDRAWTARGET) |
1774 | 0 | { |
1775 | 0 | ReadElement(aStream, mRefPtr); |
1776 | 0 | ReadElement(aStream, mMaxSize); |
1777 | 0 | ReadElement(aStream, mTransform); |
1778 | 0 | ReadElement(aStream, mFormat); |
1779 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedCreateClippedDrawTarget::RecordedCreateClippedDrawTarget<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedCreateClippedDrawTarget::RecordedCreateClippedDrawTarget<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedCreateClippedDrawTarget::RecordedCreateClippedDrawTarget<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
1780 | | |
1781 | | inline void |
1782 | | RecordedCreateClippedDrawTarget::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
1783 | 0 | { |
1784 | 0 | aStringStream << "[" << mRefPtr << "] CreateClippedDrawTarget ()"; |
1785 | 0 | } |
1786 | | |
1787 | | struct GenericPattern |
1788 | | { |
1789 | | GenericPattern(const PatternStorage &aStorage, Translator *aTranslator) |
1790 | | : mPattern(nullptr), mTranslator(aTranslator) |
1791 | 0 | { |
1792 | 0 | mStorage = const_cast<PatternStorage*>(&aStorage); |
1793 | 0 | } |
1794 | | |
1795 | 0 | ~GenericPattern() { |
1796 | 0 | if (mPattern) { |
1797 | 0 | mPattern->~Pattern(); |
1798 | 0 | } |
1799 | 0 | } |
1800 | | |
1801 | | operator Pattern*() |
1802 | 0 | { |
1803 | 0 | switch(mStorage->mType) { |
1804 | 0 | case PatternType::COLOR: |
1805 | 0 | return new (mColPat) ColorPattern(reinterpret_cast<ColorPatternStorage*>(&mStorage->mStorage)->mColor); |
1806 | 0 | case PatternType::SURFACE: |
1807 | 0 | { |
1808 | 0 | SurfacePatternStorage *storage = reinterpret_cast<SurfacePatternStorage*>(&mStorage->mStorage); |
1809 | 0 | mPattern = |
1810 | 0 | new (mSurfPat) SurfacePattern(mTranslator->LookupSourceSurface(storage->mSurface), |
1811 | 0 | storage->mExtend, storage->mMatrix, |
1812 | 0 | storage->mSamplingFilter, |
1813 | 0 | storage->mSamplingRect); |
1814 | 0 | return mPattern; |
1815 | 0 | } |
1816 | 0 | case PatternType::LINEAR_GRADIENT: |
1817 | 0 | { |
1818 | 0 | LinearGradientPatternStorage *storage = reinterpret_cast<LinearGradientPatternStorage*>(&mStorage->mStorage); |
1819 | 0 | mPattern = |
1820 | 0 | new (mLinGradPat) LinearGradientPattern(storage->mBegin, storage->mEnd, |
1821 | 0 | mTranslator->LookupGradientStops(storage->mStops), |
1822 | 0 | storage->mMatrix); |
1823 | 0 | return mPattern; |
1824 | 0 | } |
1825 | 0 | case PatternType::RADIAL_GRADIENT: |
1826 | 0 | { |
1827 | 0 | RadialGradientPatternStorage *storage = reinterpret_cast<RadialGradientPatternStorage*>(&mStorage->mStorage); |
1828 | 0 | mPattern = |
1829 | 0 | new (mRadGradPat) RadialGradientPattern(storage->mCenter1, storage->mCenter2, |
1830 | 0 | storage->mRadius1, storage->mRadius2, |
1831 | 0 | mTranslator->LookupGradientStops(storage->mStops), |
1832 | 0 | storage->mMatrix); |
1833 | 0 | return mPattern; |
1834 | 0 | } |
1835 | 0 | default: |
1836 | 0 | return new (mColPat) ColorPattern(Color()); |
1837 | 0 | } |
1838 | 0 | |
1839 | 0 | return mPattern; |
1840 | 0 | } |
1841 | | |
1842 | | union { |
1843 | | char mColPat[sizeof(ColorPattern)]; |
1844 | | char mLinGradPat[sizeof(LinearGradientPattern)]; |
1845 | | char mRadGradPat[sizeof(RadialGradientPattern)]; |
1846 | | char mSurfPat[sizeof(SurfacePattern)]; |
1847 | | }; |
1848 | | |
1849 | | PatternStorage *mStorage; |
1850 | | Pattern *mPattern; |
1851 | | Translator *mTranslator; |
1852 | | }; |
1853 | | |
1854 | | inline bool |
1855 | | RecordedFillRect::PlayEvent(Translator *aTranslator) const |
1856 | 0 | { |
1857 | 0 | aTranslator->LookupDrawTarget(mDT)->FillRect(mRect, *GenericPattern(mPattern, aTranslator), mOptions); |
1858 | 0 | return true; |
1859 | 0 | } |
1860 | | |
1861 | | template<class S> |
1862 | | void |
1863 | | RecordedFillRect::Record(S &aStream) const |
1864 | 0 | { |
1865 | 0 | RecordedDrawingEvent::Record(aStream); |
1866 | 0 | WriteElement(aStream, mRect); |
1867 | 0 | WriteElement(aStream, mOptions); |
1868 | 0 | RecordPatternData(aStream, mPattern); |
1869 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedFillRect::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedFillRect::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedFillRect::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedFillRect::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
1870 | | |
1871 | | template<class S> |
1872 | | RecordedFillRect::RecordedFillRect(S &aStream) |
1873 | | : RecordedDrawingEvent(FILLRECT, aStream) |
1874 | 0 | { |
1875 | 0 | ReadElement(aStream, mRect); |
1876 | 0 | ReadElement(aStream, mOptions); |
1877 | 0 | ReadPatternData(aStream, mPattern); |
1878 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedFillRect::RecordedFillRect<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedFillRect::RecordedFillRect<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedFillRect::RecordedFillRect<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
1879 | | |
1880 | | inline void |
1881 | | RecordedFillRect::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
1882 | 0 | { |
1883 | 0 | aStringStream << "[" << mDT << "] FillRect (" << mRect.X() << ", " << mRect.Y() << " - " << mRect.Width() << " x " << mRect.Height() << ") "; |
1884 | 0 | OutputSimplePatternInfo(mPattern, aStringStream); |
1885 | 0 | } |
1886 | | |
1887 | | inline bool |
1888 | | RecordedStrokeRect::PlayEvent(Translator *aTranslator) const |
1889 | 0 | { |
1890 | 0 | aTranslator->LookupDrawTarget(mDT)->StrokeRect(mRect, *GenericPattern(mPattern, aTranslator), mStrokeOptions, mOptions); |
1891 | 0 | return true; |
1892 | 0 | } |
1893 | | |
1894 | | template<class S> |
1895 | | void |
1896 | | RecordedStrokeRect::Record(S &aStream) const |
1897 | 0 | { |
1898 | 0 | RecordedDrawingEvent::Record(aStream); |
1899 | 0 | WriteElement(aStream, mRect); |
1900 | 0 | WriteElement(aStream, mOptions); |
1901 | 0 | RecordPatternData(aStream, mPattern); |
1902 | 0 | RecordStrokeOptions(aStream, mStrokeOptions); |
1903 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedStrokeRect::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedStrokeRect::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedStrokeRect::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedStrokeRect::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
1904 | | |
1905 | | template<class S> |
1906 | | RecordedStrokeRect::RecordedStrokeRect(S &aStream) |
1907 | | : RecordedDrawingEvent(STROKERECT, aStream) |
1908 | 0 | { |
1909 | 0 | ReadElement(aStream, mRect); |
1910 | 0 | ReadElement(aStream, mOptions); |
1911 | 0 | ReadPatternData(aStream, mPattern); |
1912 | 0 | ReadStrokeOptions(aStream, mStrokeOptions); |
1913 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedStrokeRect::RecordedStrokeRect<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedStrokeRect::RecordedStrokeRect<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedStrokeRect::RecordedStrokeRect<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
1914 | | |
1915 | | inline void |
1916 | | RecordedStrokeRect::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
1917 | 0 | { |
1918 | 0 | aStringStream << "[" << mDT << "] StrokeRect (" << mRect.X() << ", " << mRect.Y() << " - " << mRect.Width() << " x " << mRect.Height() |
1919 | 0 | << ") LineWidth: " << mStrokeOptions.mLineWidth << "px "; |
1920 | 0 | OutputSimplePatternInfo(mPattern, aStringStream); |
1921 | 0 | } |
1922 | | |
1923 | | inline bool |
1924 | | RecordedStrokeLine::PlayEvent(Translator *aTranslator) const |
1925 | 0 | { |
1926 | 0 | aTranslator->LookupDrawTarget(mDT)->StrokeLine(mBegin, mEnd, *GenericPattern(mPattern, aTranslator), mStrokeOptions, mOptions); |
1927 | 0 | return true; |
1928 | 0 | } |
1929 | | |
1930 | | template<class S> |
1931 | | void |
1932 | | RecordedStrokeLine::Record(S &aStream) const |
1933 | 0 | { |
1934 | 0 | RecordedDrawingEvent::Record(aStream); |
1935 | 0 | WriteElement(aStream, mBegin); |
1936 | 0 | WriteElement(aStream, mEnd); |
1937 | 0 | WriteElement(aStream, mOptions); |
1938 | 0 | RecordPatternData(aStream, mPattern); |
1939 | 0 | RecordStrokeOptions(aStream, mStrokeOptions); |
1940 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedStrokeLine::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedStrokeLine::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedStrokeLine::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedStrokeLine::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
1941 | | |
1942 | | template<class S> |
1943 | | RecordedStrokeLine::RecordedStrokeLine(S &aStream) |
1944 | | : RecordedDrawingEvent(STROKELINE, aStream) |
1945 | 0 | { |
1946 | 0 | ReadElement(aStream, mBegin); |
1947 | 0 | ReadElement(aStream, mEnd); |
1948 | 0 | ReadElement(aStream, mOptions); |
1949 | 0 | ReadPatternData(aStream, mPattern); |
1950 | 0 | ReadStrokeOptions(aStream, mStrokeOptions); |
1951 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedStrokeLine::RecordedStrokeLine<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedStrokeLine::RecordedStrokeLine<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedStrokeLine::RecordedStrokeLine<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
1952 | | |
1953 | | inline void |
1954 | | RecordedStrokeLine::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
1955 | 0 | { |
1956 | 0 | aStringStream << "[" << mDT << "] StrokeLine (" << mBegin.x << ", " << mBegin.y << " - " << mEnd.x << ", " << mEnd.y |
1957 | 0 | << ") LineWidth: " << mStrokeOptions.mLineWidth << "px "; |
1958 | 0 | OutputSimplePatternInfo(mPattern, aStringStream); |
1959 | 0 | } |
1960 | | |
1961 | | inline bool |
1962 | | RecordedFill::PlayEvent(Translator *aTranslator) const |
1963 | 0 | { |
1964 | 0 | aTranslator->LookupDrawTarget(mDT)->Fill(aTranslator->LookupPath(mPath), *GenericPattern(mPattern, aTranslator), mOptions); |
1965 | 0 | return true; |
1966 | 0 | } |
1967 | | |
1968 | | template<class S> |
1969 | | RecordedFill::RecordedFill(S &aStream) |
1970 | | : RecordedDrawingEvent(FILL, aStream) |
1971 | 0 | { |
1972 | 0 | ReadElement(aStream, mPath); |
1973 | 0 | ReadElement(aStream, mOptions); |
1974 | 0 | ReadPatternData(aStream, mPattern); |
1975 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedFill::RecordedFill<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedFill::RecordedFill<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedFill::RecordedFill<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
1976 | | |
1977 | | template<class S> |
1978 | | void |
1979 | | RecordedFill::Record(S &aStream) const |
1980 | 0 | { |
1981 | 0 | RecordedDrawingEvent::Record(aStream); |
1982 | 0 | WriteElement(aStream, mPath); |
1983 | 0 | WriteElement(aStream, mOptions); |
1984 | 0 | RecordPatternData(aStream, mPattern); |
1985 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedFill::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedFill::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedFill::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedFill::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
1986 | | |
1987 | | inline void |
1988 | | RecordedFill::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
1989 | 0 | { |
1990 | 0 | aStringStream << "[" << mDT << "] Fill (" << mPath << ") "; |
1991 | 0 | OutputSimplePatternInfo(mPattern, aStringStream); |
1992 | 0 | } |
1993 | | |
1994 | | inline |
1995 | | RecordedFillGlyphs::~RecordedFillGlyphs() |
1996 | 0 | { |
1997 | 0 | delete [] mGlyphs; |
1998 | 0 | } |
1999 | | |
2000 | | inline bool |
2001 | | RecordedFillGlyphs::PlayEvent(Translator *aTranslator) const |
2002 | 0 | { |
2003 | 0 | GlyphBuffer buffer; |
2004 | 0 | buffer.mGlyphs = mGlyphs; |
2005 | 0 | buffer.mNumGlyphs = mNumGlyphs; |
2006 | 0 | aTranslator->LookupDrawTarget(mDT)->FillGlyphs(aTranslator->LookupScaledFont(mScaledFont), buffer, *GenericPattern(mPattern, aTranslator), mOptions); |
2007 | 0 | return true; |
2008 | 0 | } |
2009 | | |
2010 | | template<class S> |
2011 | | RecordedFillGlyphs::RecordedFillGlyphs(S &aStream) |
2012 | | : RecordedDrawingEvent(FILLGLYPHS, aStream) |
2013 | 0 | { |
2014 | 0 | ReadElement(aStream, mScaledFont); |
2015 | 0 | ReadElement(aStream, mOptions); |
2016 | 0 | ReadPatternData(aStream, mPattern); |
2017 | 0 | ReadElement(aStream, mNumGlyphs); |
2018 | 0 | mGlyphs = new Glyph[mNumGlyphs]; |
2019 | 0 | aStream.read((char*)mGlyphs, sizeof(Glyph) * mNumGlyphs); |
2020 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedFillGlyphs::RecordedFillGlyphs<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedFillGlyphs::RecordedFillGlyphs<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedFillGlyphs::RecordedFillGlyphs<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2021 | | |
2022 | | template<class S> |
2023 | | void |
2024 | | RecordedFillGlyphs::Record(S &aStream) const |
2025 | 0 | { |
2026 | 0 | RecordedDrawingEvent::Record(aStream); |
2027 | 0 | WriteElement(aStream, mScaledFont); |
2028 | 0 | WriteElement(aStream, mOptions); |
2029 | 0 | RecordPatternData(aStream, mPattern); |
2030 | 0 | WriteElement(aStream, mNumGlyphs); |
2031 | 0 | aStream.write((char*)mGlyphs, sizeof(Glyph) * mNumGlyphs); |
2032 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedFillGlyphs::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedFillGlyphs::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedFillGlyphs::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedFillGlyphs::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2033 | | |
2034 | | inline void |
2035 | | RecordedFillGlyphs::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2036 | 0 | { |
2037 | 0 | aStringStream << "[" << mDT << "] FillGlyphs (" << mScaledFont << ") "; |
2038 | 0 | OutputSimplePatternInfo(mPattern, aStringStream); |
2039 | 0 | } |
2040 | | |
2041 | | inline bool |
2042 | | RecordedMask::PlayEvent(Translator *aTranslator) const |
2043 | 0 | { |
2044 | 0 | aTranslator->LookupDrawTarget(mDT)->Mask(*GenericPattern(mSource, aTranslator), *GenericPattern(mMask, aTranslator), mOptions); |
2045 | 0 | return true; |
2046 | 0 | } |
2047 | | |
2048 | | template<class S> |
2049 | | RecordedMask::RecordedMask(S &aStream) |
2050 | | : RecordedDrawingEvent(MASK, aStream) |
2051 | 0 | { |
2052 | 0 | ReadElement(aStream, mOptions); |
2053 | 0 | ReadPatternData(aStream, mSource); |
2054 | 0 | ReadPatternData(aStream, mMask); |
2055 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedMask::RecordedMask<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedMask::RecordedMask<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedMask::RecordedMask<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2056 | | |
2057 | | template<class S> |
2058 | | void |
2059 | | RecordedMask::Record(S &aStream) const |
2060 | 0 | { |
2061 | 0 | RecordedDrawingEvent::Record(aStream); |
2062 | 0 | WriteElement(aStream, mOptions); |
2063 | 0 | RecordPatternData(aStream, mSource); |
2064 | 0 | RecordPatternData(aStream, mMask); |
2065 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedMask::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedMask::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedMask::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedMask::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2066 | | |
2067 | | inline void |
2068 | | RecordedMask::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2069 | 0 | { |
2070 | 0 | aStringStream << "[" << mDT << "] Mask (Source: "; |
2071 | 0 | OutputSimplePatternInfo(mSource, aStringStream); |
2072 | 0 | aStringStream << " Mask: "; |
2073 | 0 | OutputSimplePatternInfo(mMask, aStringStream); |
2074 | 0 | } |
2075 | | |
2076 | | inline bool |
2077 | | RecordedStroke::PlayEvent(Translator *aTranslator) const |
2078 | 0 | { |
2079 | 0 | aTranslator->LookupDrawTarget(mDT)->Stroke(aTranslator->LookupPath(mPath), *GenericPattern(mPattern, aTranslator), mStrokeOptions, mOptions); |
2080 | 0 | return true; |
2081 | 0 | } |
2082 | | |
2083 | | template<class S> |
2084 | | void |
2085 | | RecordedStroke::Record(S &aStream) const |
2086 | 0 | { |
2087 | 0 | RecordedDrawingEvent::Record(aStream); |
2088 | 0 | WriteElement(aStream, mPath); |
2089 | 0 | WriteElement(aStream, mOptions); |
2090 | 0 | RecordPatternData(aStream, mPattern); |
2091 | 0 | RecordStrokeOptions(aStream, mStrokeOptions); |
2092 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedStroke::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedStroke::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedStroke::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedStroke::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2093 | | |
2094 | | template<class S> |
2095 | | RecordedStroke::RecordedStroke(S &aStream) |
2096 | | : RecordedDrawingEvent(STROKE, aStream) |
2097 | 0 | { |
2098 | 0 | ReadElement(aStream, mPath); |
2099 | 0 | ReadElement(aStream, mOptions); |
2100 | 0 | ReadPatternData(aStream, mPattern); |
2101 | 0 | ReadStrokeOptions(aStream, mStrokeOptions); |
2102 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedStroke::RecordedStroke<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedStroke::RecordedStroke<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedStroke::RecordedStroke<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2103 | | |
2104 | | inline void |
2105 | | RecordedStroke::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2106 | 0 | { |
2107 | 0 | aStringStream << "[" << mDT << "] Stroke ("<< mPath << ") LineWidth: " << mStrokeOptions.mLineWidth << "px "; |
2108 | 0 | OutputSimplePatternInfo(mPattern, aStringStream); |
2109 | 0 | } |
2110 | | |
2111 | | inline bool |
2112 | | RecordedClearRect::PlayEvent(Translator *aTranslator) const |
2113 | 0 | { |
2114 | 0 | aTranslator->LookupDrawTarget(mDT)->ClearRect(mRect); |
2115 | 0 | return true; |
2116 | 0 | } |
2117 | | |
2118 | | template<class S> |
2119 | | void |
2120 | | RecordedClearRect::Record(S &aStream) const |
2121 | 0 | { |
2122 | 0 | RecordedDrawingEvent::Record(aStream); |
2123 | 0 | WriteElement(aStream, mRect); |
2124 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedClearRect::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedClearRect::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedClearRect::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedClearRect::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2125 | | |
2126 | | template<class S> |
2127 | | RecordedClearRect::RecordedClearRect(S &aStream) |
2128 | | : RecordedDrawingEvent(CLEARRECT, aStream) |
2129 | 0 | { |
2130 | 0 | ReadElement(aStream, mRect); |
2131 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedClearRect::RecordedClearRect<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedClearRect::RecordedClearRect<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedClearRect::RecordedClearRect<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2132 | | |
2133 | | inline void |
2134 | | RecordedClearRect::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2135 | 0 | { |
2136 | 0 | aStringStream << "[" << mDT<< "] ClearRect (" << mRect.X() << ", " << mRect.Y() << " - " << mRect.Width() << " x " << mRect.Height() << ") "; |
2137 | 0 | } |
2138 | | |
2139 | | inline bool |
2140 | | RecordedCopySurface::PlayEvent(Translator *aTranslator) const |
2141 | 0 | { |
2142 | 0 | aTranslator->LookupDrawTarget(mDT)->CopySurface(aTranslator->LookupSourceSurface(mSourceSurface), |
2143 | 0 | mSourceRect, mDest); |
2144 | 0 | return true; |
2145 | 0 | } |
2146 | | |
2147 | | template<class S> |
2148 | | void |
2149 | | RecordedCopySurface::Record(S &aStream) const |
2150 | 0 | { |
2151 | 0 | RecordedDrawingEvent::Record(aStream); |
2152 | 0 | WriteElement(aStream, mSourceSurface); |
2153 | 0 | WriteElement(aStream, mSourceRect); |
2154 | 0 | WriteElement(aStream, mDest); |
2155 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedCopySurface::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedCopySurface::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedCopySurface::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedCopySurface::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2156 | | |
2157 | | template<class S> |
2158 | | RecordedCopySurface::RecordedCopySurface(S &aStream) |
2159 | | : RecordedDrawingEvent(COPYSURFACE, aStream) |
2160 | 0 | { |
2161 | 0 | ReadElement(aStream, mSourceSurface); |
2162 | 0 | ReadElement(aStream, mSourceRect); |
2163 | 0 | ReadElement(aStream, mDest); |
2164 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedCopySurface::RecordedCopySurface<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedCopySurface::RecordedCopySurface<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedCopySurface::RecordedCopySurface<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2165 | | |
2166 | | inline void |
2167 | | RecordedCopySurface::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2168 | 0 | { |
2169 | 0 | aStringStream << "[" << mDT<< "] CopySurface (" << mSourceSurface << ")"; |
2170 | 0 | } |
2171 | | |
2172 | | inline bool |
2173 | | RecordedPushClip::PlayEvent(Translator *aTranslator) const |
2174 | 0 | { |
2175 | 0 | aTranslator->LookupDrawTarget(mDT)->PushClip(aTranslator->LookupPath(mPath)); |
2176 | 0 | return true; |
2177 | 0 | } |
2178 | | |
2179 | | template<class S> |
2180 | | void |
2181 | | RecordedPushClip::Record(S &aStream) const |
2182 | 0 | { |
2183 | 0 | RecordedDrawingEvent::Record(aStream); |
2184 | 0 | WriteElement(aStream, mPath); |
2185 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedPushClip::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedPushClip::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedPushClip::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedPushClip::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2186 | | |
2187 | | template<class S> |
2188 | | RecordedPushClip::RecordedPushClip(S &aStream) |
2189 | | : RecordedDrawingEvent(PUSHCLIP, aStream) |
2190 | 0 | { |
2191 | 0 | ReadElement(aStream, mPath); |
2192 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedPushClip::RecordedPushClip<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedPushClip::RecordedPushClip<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedPushClip::RecordedPushClip<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2193 | | |
2194 | | inline void |
2195 | | RecordedPushClip::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2196 | 0 | { |
2197 | 0 | aStringStream << "[" << mDT << "] PushClip (" << mPath << ") "; |
2198 | 0 | } |
2199 | | |
2200 | | inline bool |
2201 | | RecordedPushClipRect::PlayEvent(Translator *aTranslator) const |
2202 | 0 | { |
2203 | 0 | aTranslator->LookupDrawTarget(mDT)->PushClipRect(mRect); |
2204 | 0 | return true; |
2205 | 0 | } |
2206 | | |
2207 | | template<class S> |
2208 | | void |
2209 | | RecordedPushClipRect::Record(S &aStream) const |
2210 | 0 | { |
2211 | 0 | RecordedDrawingEvent::Record(aStream); |
2212 | 0 | WriteElement(aStream, mRect); |
2213 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedPushClipRect::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedPushClipRect::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedPushClipRect::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedPushClipRect::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2214 | | |
2215 | | template<class S> |
2216 | | RecordedPushClipRect::RecordedPushClipRect(S &aStream) |
2217 | | : RecordedDrawingEvent(PUSHCLIPRECT, aStream) |
2218 | 0 | { |
2219 | 0 | ReadElement(aStream, mRect); |
2220 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedPushClipRect::RecordedPushClipRect<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedPushClipRect::RecordedPushClipRect<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedPushClipRect::RecordedPushClipRect<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2221 | | |
2222 | | inline void |
2223 | | RecordedPushClipRect::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2224 | 0 | { |
2225 | 0 | aStringStream << "[" << mDT << "] PushClipRect (" << mRect.X() << ", " << mRect.Y() << " - " << mRect.Width() << " x " << mRect.Height() << ") "; |
2226 | 0 | } |
2227 | | |
2228 | | inline bool |
2229 | | RecordedPopClip::PlayEvent(Translator *aTranslator) const |
2230 | 0 | { |
2231 | 0 | aTranslator->LookupDrawTarget(mDT)->PopClip(); |
2232 | 0 | return true; |
2233 | 0 | } |
2234 | | |
2235 | | template<class S> |
2236 | | void |
2237 | | RecordedPopClip::Record(S &aStream) const |
2238 | 0 | { |
2239 | 0 | RecordedDrawingEvent::Record(aStream); |
2240 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedPopClip::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedPopClip::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedPopClip::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedPopClip::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2241 | | |
2242 | | template<class S> |
2243 | | RecordedPopClip::RecordedPopClip(S &aStream) |
2244 | | : RecordedDrawingEvent(POPCLIP, aStream) |
2245 | 0 | { |
2246 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedPopClip::RecordedPopClip<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedPopClip::RecordedPopClip<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedPopClip::RecordedPopClip<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2247 | | |
2248 | | inline void |
2249 | | RecordedPopClip::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2250 | 0 | { |
2251 | 0 | aStringStream << "[" << mDT << "] PopClip"; |
2252 | 0 | } |
2253 | | |
2254 | | inline bool |
2255 | | RecordedPushLayer::PlayEvent(Translator *aTranslator) const |
2256 | 0 | { |
2257 | 0 | SourceSurface* mask = mMask ? aTranslator->LookupSourceSurface(mMask) |
2258 | 0 | : nullptr; |
2259 | 0 | aTranslator->LookupDrawTarget(mDT)-> |
2260 | 0 | PushLayer(mOpaque, mOpacity, mask, mMaskTransform, mBounds, mCopyBackground); |
2261 | 0 | return true; |
2262 | 0 | } |
2263 | | |
2264 | | template<class S> |
2265 | | void |
2266 | | RecordedPushLayer::Record(S &aStream) const |
2267 | 0 | { |
2268 | 0 | RecordedDrawingEvent::Record(aStream); |
2269 | 0 | WriteElement(aStream, mOpaque); |
2270 | 0 | WriteElement(aStream, mOpacity); |
2271 | 0 | WriteElement(aStream, mMask); |
2272 | 0 | WriteElement(aStream, mMaskTransform); |
2273 | 0 | WriteElement(aStream, mBounds); |
2274 | 0 | WriteElement(aStream, mCopyBackground); |
2275 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedPushLayer::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedPushLayer::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedPushLayer::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedPushLayer::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2276 | | |
2277 | | template<class S> |
2278 | | RecordedPushLayer::RecordedPushLayer(S &aStream) |
2279 | | : RecordedDrawingEvent(PUSHLAYER, aStream) |
2280 | 0 | { |
2281 | 0 | ReadElement(aStream, mOpaque); |
2282 | 0 | ReadElement(aStream, mOpacity); |
2283 | 0 | ReadElement(aStream, mMask); |
2284 | 0 | ReadElement(aStream, mMaskTransform); |
2285 | 0 | ReadElement(aStream, mBounds); |
2286 | 0 | ReadElement(aStream, mCopyBackground); |
2287 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedPushLayer::RecordedPushLayer<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedPushLayer::RecordedPushLayer<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedPushLayer::RecordedPushLayer<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2288 | | |
2289 | | inline void |
2290 | | RecordedPushLayer::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2291 | 0 | { |
2292 | 0 | aStringStream << "[" << mDT << "] PushPLayer (Opaque=" << mOpaque << |
2293 | 0 | ", Opacity=" << mOpacity << ", Mask Ref=" << mMask << ") "; |
2294 | 0 | } |
2295 | | |
2296 | | inline bool |
2297 | | RecordedPushLayerWithBlend::PlayEvent(Translator *aTranslator) const |
2298 | 0 | { |
2299 | 0 | SourceSurface* mask = mMask ? aTranslator->LookupSourceSurface(mMask) |
2300 | 0 | : nullptr; |
2301 | 0 | aTranslator->LookupDrawTarget(mDT)-> |
2302 | 0 | PushLayerWithBlend(mOpaque, mOpacity, mask, mMaskTransform, mBounds, mCopyBackground, mCompositionOp); |
2303 | 0 | return true; |
2304 | 0 | } |
2305 | | |
2306 | | template<class S> |
2307 | | void |
2308 | | RecordedPushLayerWithBlend::Record(S &aStream) const |
2309 | 0 | { |
2310 | 0 | RecordedDrawingEvent::Record(aStream); |
2311 | 0 | WriteElement(aStream, mOpaque); |
2312 | 0 | WriteElement(aStream, mOpacity); |
2313 | 0 | WriteElement(aStream, mMask); |
2314 | 0 | WriteElement(aStream, mMaskTransform); |
2315 | 0 | WriteElement(aStream, mBounds); |
2316 | 0 | WriteElement(aStream, mCopyBackground); |
2317 | 0 | WriteElement(aStream, mCompositionOp); |
2318 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedPushLayerWithBlend::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedPushLayerWithBlend::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedPushLayerWithBlend::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedPushLayerWithBlend::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2319 | | |
2320 | | template<class S> |
2321 | | RecordedPushLayerWithBlend::RecordedPushLayerWithBlend(S &aStream) |
2322 | | : RecordedDrawingEvent(PUSHLAYERWITHBLEND, aStream) |
2323 | 0 | { |
2324 | 0 | ReadElement(aStream, mOpaque); |
2325 | 0 | ReadElement(aStream, mOpacity); |
2326 | 0 | ReadElement(aStream, mMask); |
2327 | 0 | ReadElement(aStream, mMaskTransform); |
2328 | 0 | ReadElement(aStream, mBounds); |
2329 | 0 | ReadElement(aStream, mCopyBackground); |
2330 | 0 | ReadElement(aStream, mCompositionOp); |
2331 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedPushLayerWithBlend::RecordedPushLayerWithBlend<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedPushLayerWithBlend::RecordedPushLayerWithBlend<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedPushLayerWithBlend::RecordedPushLayerWithBlend<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2332 | | |
2333 | | inline void |
2334 | | RecordedPushLayerWithBlend::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2335 | 0 | { |
2336 | 0 | aStringStream << "[" << mDT << "] PushLayerWithBlend (Opaque=" << mOpaque << |
2337 | 0 | ", Opacity=" << mOpacity << ", Mask Ref=" << mMask << ") "; |
2338 | 0 | } |
2339 | | |
2340 | | |
2341 | | inline bool |
2342 | | RecordedPopLayer::PlayEvent(Translator *aTranslator) const |
2343 | 0 | { |
2344 | 0 | aTranslator->LookupDrawTarget(mDT)->PopLayer(); |
2345 | 0 | return true; |
2346 | 0 | } |
2347 | | |
2348 | | template<class S> |
2349 | | void |
2350 | | RecordedPopLayer::Record(S &aStream) const |
2351 | 0 | { |
2352 | 0 | RecordedDrawingEvent::Record(aStream); |
2353 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedPopLayer::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedPopLayer::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedPopLayer::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedPopLayer::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2354 | | |
2355 | | template<class S> |
2356 | | RecordedPopLayer::RecordedPopLayer(S &aStream) |
2357 | | : RecordedDrawingEvent(POPLAYER, aStream) |
2358 | 0 | { |
2359 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedPopLayer::RecordedPopLayer<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedPopLayer::RecordedPopLayer<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedPopLayer::RecordedPopLayer<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2360 | | |
2361 | | inline void |
2362 | | RecordedPopLayer::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2363 | 0 | { |
2364 | 0 | aStringStream << "[" << mDT << "] PopLayer"; |
2365 | 0 | } |
2366 | | |
2367 | | inline bool |
2368 | | RecordedSetTransform::PlayEvent(Translator *aTranslator) const |
2369 | 0 | { |
2370 | 0 | aTranslator->LookupDrawTarget(mDT)->SetTransform(mTransform); |
2371 | 0 | return true; |
2372 | 0 | } |
2373 | | |
2374 | | template<class S> |
2375 | | void |
2376 | | RecordedSetTransform::Record(S &aStream) const |
2377 | 0 | { |
2378 | 0 | RecordedDrawingEvent::Record(aStream); |
2379 | 0 | WriteElement(aStream, mTransform); |
2380 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedSetTransform::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedSetTransform::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedSetTransform::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedSetTransform::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2381 | | |
2382 | | template<class S> |
2383 | | RecordedSetTransform::RecordedSetTransform(S &aStream) |
2384 | | : RecordedDrawingEvent(SETTRANSFORM, aStream) |
2385 | 0 | { |
2386 | 0 | ReadElement(aStream, mTransform); |
2387 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedSetTransform::RecordedSetTransform<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedSetTransform::RecordedSetTransform<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedSetTransform::RecordedSetTransform<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2388 | | |
2389 | | inline void |
2390 | | RecordedSetTransform::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2391 | 0 | { |
2392 | 0 | aStringStream << "[" << mDT << "] SetTransform [ " << mTransform._11 << " " << mTransform._12 << " ; " << |
2393 | 0 | mTransform._21 << " " << mTransform._22 << " ; " << mTransform._31 << " " << mTransform._32 << " ]"; |
2394 | 0 | } |
2395 | | |
2396 | | inline bool |
2397 | | RecordedDrawSurface::PlayEvent(Translator *aTranslator) const |
2398 | 0 | { |
2399 | 0 | aTranslator->LookupDrawTarget(mDT)-> |
2400 | 0 | DrawSurface(aTranslator->LookupSourceSurface(mRefSource), mDest, mSource, |
2401 | 0 | mDSOptions, mOptions); |
2402 | 0 | return true; |
2403 | 0 | } |
2404 | | |
2405 | | template<class S> |
2406 | | void |
2407 | | RecordedDrawSurface::Record(S &aStream) const |
2408 | 0 | { |
2409 | 0 | RecordedDrawingEvent::Record(aStream); |
2410 | 0 | WriteElement(aStream, mRefSource); |
2411 | 0 | WriteElement(aStream, mDest); |
2412 | 0 | WriteElement(aStream, mSource); |
2413 | 0 | WriteElement(aStream, mDSOptions); |
2414 | 0 | WriteElement(aStream, mOptions); |
2415 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedDrawSurface::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawSurface::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawSurface::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawSurface::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2416 | | |
2417 | | template<class S> |
2418 | | RecordedDrawSurface::RecordedDrawSurface(S &aStream) |
2419 | | : RecordedDrawingEvent(DRAWSURFACE, aStream) |
2420 | 0 | { |
2421 | 0 | ReadElement(aStream, mRefSource); |
2422 | 0 | ReadElement(aStream, mDest); |
2423 | 0 | ReadElement(aStream, mSource); |
2424 | 0 | ReadElement(aStream, mDSOptions); |
2425 | 0 | ReadElement(aStream, mOptions); |
2426 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawSurface::RecordedDrawSurface<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedDrawSurface::RecordedDrawSurface<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawSurface::RecordedDrawSurface<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2427 | | |
2428 | | inline void |
2429 | | RecordedDrawSurface::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2430 | 0 | { |
2431 | 0 | aStringStream << "[" << mDT << "] DrawSurface (" << mRefSource << ")"; |
2432 | 0 | } |
2433 | | |
2434 | | inline bool |
2435 | | RecordedDrawFilter::PlayEvent(Translator *aTranslator) const |
2436 | 0 | { |
2437 | 0 | aTranslator->LookupDrawTarget(mDT)-> |
2438 | 0 | DrawFilter(aTranslator->LookupFilterNode(mNode), mSourceRect, |
2439 | 0 | mDestPoint, mOptions); |
2440 | 0 | return true; |
2441 | 0 | } |
2442 | | |
2443 | | template<class S> |
2444 | | void |
2445 | | RecordedDrawFilter::Record(S &aStream) const |
2446 | 0 | { |
2447 | 0 | RecordedDrawingEvent::Record(aStream); |
2448 | 0 | WriteElement(aStream, mNode); |
2449 | 0 | WriteElement(aStream, mSourceRect); |
2450 | 0 | WriteElement(aStream, mDestPoint); |
2451 | 0 | WriteElement(aStream, mOptions); |
2452 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedDrawFilter::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawFilter::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawFilter::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawFilter::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2453 | | |
2454 | | template<class S> |
2455 | | RecordedDrawFilter::RecordedDrawFilter(S &aStream) |
2456 | | : RecordedDrawingEvent(DRAWFILTER, aStream) |
2457 | 0 | { |
2458 | 0 | ReadElement(aStream, mNode); |
2459 | 0 | ReadElement(aStream, mSourceRect); |
2460 | 0 | ReadElement(aStream, mDestPoint); |
2461 | 0 | ReadElement(aStream, mOptions); |
2462 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawFilter::RecordedDrawFilter<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedDrawFilter::RecordedDrawFilter<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawFilter::RecordedDrawFilter<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2463 | | |
2464 | | inline void |
2465 | | RecordedDrawFilter::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2466 | 0 | { |
2467 | 0 | aStringStream << "[" << mDT << "] DrawFilter (" << mNode << ")"; |
2468 | 0 | } |
2469 | | |
2470 | | inline bool |
2471 | | RecordedDrawSurfaceWithShadow::PlayEvent(Translator *aTranslator) const |
2472 | 0 | { |
2473 | 0 | aTranslator->LookupDrawTarget(mDT)-> |
2474 | 0 | DrawSurfaceWithShadow(aTranslator->LookupSourceSurface(mRefSource), |
2475 | 0 | mDest, mColor, mOffset, mSigma, mOp); |
2476 | 0 | return true; |
2477 | 0 | } |
2478 | | |
2479 | | template<class S> |
2480 | | void |
2481 | | RecordedDrawSurfaceWithShadow::Record(S &aStream) const |
2482 | 0 | { |
2483 | 0 | RecordedDrawingEvent::Record(aStream); |
2484 | 0 | WriteElement(aStream, mRefSource); |
2485 | 0 | WriteElement(aStream, mDest); |
2486 | 0 | WriteElement(aStream, mColor); |
2487 | 0 | WriteElement(aStream, mOffset); |
2488 | 0 | WriteElement(aStream, mSigma); |
2489 | 0 | WriteElement(aStream, mOp); |
2490 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedDrawSurfaceWithShadow::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawSurfaceWithShadow::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawSurfaceWithShadow::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedDrawSurfaceWithShadow::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2491 | | |
2492 | | template<class S> |
2493 | | RecordedDrawSurfaceWithShadow::RecordedDrawSurfaceWithShadow(S &aStream) |
2494 | | : RecordedDrawingEvent(DRAWSURFACEWITHSHADOW, aStream) |
2495 | 0 | { |
2496 | 0 | ReadElement(aStream, mRefSource); |
2497 | 0 | ReadElement(aStream, mDest); |
2498 | 0 | ReadElement(aStream, mColor); |
2499 | 0 | ReadElement(aStream, mOffset); |
2500 | 0 | ReadElement(aStream, mSigma); |
2501 | 0 | ReadElement(aStream, mOp); |
2502 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedDrawSurfaceWithShadow::RecordedDrawSurfaceWithShadow<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedDrawSurfaceWithShadow::RecordedDrawSurfaceWithShadow<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedDrawSurfaceWithShadow::RecordedDrawSurfaceWithShadow<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2503 | | |
2504 | | inline void |
2505 | | RecordedDrawSurfaceWithShadow::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2506 | 0 | { |
2507 | 0 | aStringStream << "[" << mDT << "] DrawSurfaceWithShadow (" << mRefSource << ") Color: (" << |
2508 | 0 | mColor.r << ", " << mColor.g << ", " << mColor.b << ", " << mColor.a << ")"; |
2509 | 0 | } |
2510 | | |
2511 | | inline |
2512 | | RecordedPathCreation::RecordedPathCreation(PathRecording *aPath) |
2513 | | : RecordedEventDerived(PATHCREATION), mRefPtr(aPath), mFillRule(aPath->mFillRule), mPathOps(aPath->mPathOps) |
2514 | 0 | { |
2515 | 0 | } |
2516 | | |
2517 | | inline |
2518 | | RecordedPathCreation::~RecordedPathCreation() |
2519 | 0 | { |
2520 | 0 | } |
2521 | | |
2522 | | inline bool |
2523 | | RecordedPathCreation::PlayEvent(Translator *aTranslator) const |
2524 | 0 | { |
2525 | 0 | RefPtr<PathBuilder> builder = |
2526 | 0 | aTranslator->GetReferenceDrawTarget()->CreatePathBuilder(mFillRule); |
2527 | 0 |
|
2528 | 0 | for (size_t i = 0; i < mPathOps.size(); i++) { |
2529 | 0 | const PathOp &op = mPathOps[i]; |
2530 | 0 | switch (op.mType) { |
2531 | 0 | case PathOp::OP_MOVETO: |
2532 | 0 | builder->MoveTo(op.mP1); |
2533 | 0 | break; |
2534 | 0 | case PathOp::OP_LINETO: |
2535 | 0 | builder->LineTo(op.mP1); |
2536 | 0 | break; |
2537 | 0 | case PathOp::OP_BEZIERTO: |
2538 | 0 | builder->BezierTo(op.mP1, op.mP2, op.mP3); |
2539 | 0 | break; |
2540 | 0 | case PathOp::OP_QUADRATICBEZIERTO: |
2541 | 0 | builder->QuadraticBezierTo(op.mP1, op.mP2); |
2542 | 0 | break; |
2543 | 0 | case PathOp::OP_CLOSE: |
2544 | 0 | builder->Close(); |
2545 | 0 | break; |
2546 | 0 | } |
2547 | 0 | } |
2548 | 0 |
|
2549 | 0 | RefPtr<Path> path = builder->Finish(); |
2550 | 0 | aTranslator->AddPath(mRefPtr, path); |
2551 | 0 | return true; |
2552 | 0 | } |
2553 | | |
2554 | | template<class S> |
2555 | | void |
2556 | | RecordedPathCreation::Record(S &aStream) const |
2557 | 0 | { |
2558 | 0 | WriteElement(aStream, mRefPtr); |
2559 | 0 | WriteElement(aStream, uint64_t(mPathOps.size())); |
2560 | 0 | WriteElement(aStream, mFillRule); |
2561 | 0 | typedef std::vector<PathOp> pathOpVec; |
2562 | 0 | for (pathOpVec::const_iterator iter = mPathOps.begin(); iter != mPathOps.end(); iter++) { |
2563 | 0 | WriteElement(aStream, iter->mType); |
2564 | 0 | if (sPointCount[iter->mType] >= 1) { |
2565 | 0 | WriteElement(aStream, iter->mP1); |
2566 | 0 | } |
2567 | 0 | if (sPointCount[iter->mType] >= 2) { |
2568 | 0 | WriteElement(aStream, iter->mP2); |
2569 | 0 | } |
2570 | 0 | if (sPointCount[iter->mType] >= 3) { |
2571 | 0 | WriteElement(aStream, iter->mP3); |
2572 | 0 | } |
2573 | 0 | } |
2574 | 0 |
|
2575 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedPathCreation::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedPathCreation::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedPathCreation::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedPathCreation::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2576 | | |
2577 | | template<class S> |
2578 | | RecordedPathCreation::RecordedPathCreation(S &aStream) |
2579 | | : RecordedEventDerived(PATHCREATION) |
2580 | 0 | { |
2581 | 0 | uint64_t size; |
2582 | 0 |
|
2583 | 0 | ReadElement(aStream, mRefPtr); |
2584 | 0 | ReadElement(aStream, size); |
2585 | 0 | ReadElement(aStream, mFillRule); |
2586 | 0 |
|
2587 | 0 | for (uint64_t i = 0; i < size; i++) { |
2588 | 0 | PathOp newPathOp; |
2589 | 0 | ReadElement(aStream, newPathOp.mType); |
2590 | 0 | if (sPointCount[newPathOp.mType] >= 1) { |
2591 | 0 | ReadElement(aStream, newPathOp.mP1); |
2592 | 0 | } |
2593 | 0 | if (sPointCount[newPathOp.mType] >= 2) { |
2594 | 0 | ReadElement(aStream, newPathOp.mP2); |
2595 | 0 | } |
2596 | 0 | if (sPointCount[newPathOp.mType] >= 3) { |
2597 | 0 | ReadElement(aStream, newPathOp.mP3); |
2598 | 0 | } |
2599 | 0 |
|
2600 | 0 | mPathOps.push_back(newPathOp); |
2601 | 0 | } |
2602 | 0 |
|
2603 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedPathCreation::RecordedPathCreation<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedPathCreation::RecordedPathCreation<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedPathCreation::RecordedPathCreation<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2604 | | |
2605 | | inline void |
2606 | | RecordedPathCreation::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2607 | 0 | { |
2608 | 0 | aStringStream << "[" << mRefPtr << "] Path created (OpCount: " << mPathOps.size() << ")"; |
2609 | 0 | } |
2610 | | inline bool |
2611 | | RecordedPathDestruction::PlayEvent(Translator *aTranslator) const |
2612 | 0 | { |
2613 | 0 | aTranslator->RemovePath(mRefPtr); |
2614 | 0 | return true; |
2615 | 0 | } |
2616 | | |
2617 | | template<class S> |
2618 | | void |
2619 | | RecordedPathDestruction::Record(S &aStream) const |
2620 | 0 | { |
2621 | 0 | WriteElement(aStream, mRefPtr); |
2622 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedPathDestruction::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedPathDestruction::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedPathDestruction::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedPathDestruction::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2623 | | |
2624 | | template<class S> |
2625 | | RecordedPathDestruction::RecordedPathDestruction(S &aStream) |
2626 | | : RecordedEventDerived(PATHDESTRUCTION) |
2627 | 0 | { |
2628 | 0 | ReadElement(aStream, mRefPtr); |
2629 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedPathDestruction::RecordedPathDestruction<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedPathDestruction::RecordedPathDestruction<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedPathDestruction::RecordedPathDestruction<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2630 | | |
2631 | | inline void |
2632 | | RecordedPathDestruction::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2633 | 0 | { |
2634 | 0 | aStringStream << "[" << mRefPtr << "] Path Destroyed"; |
2635 | 0 | } |
2636 | | |
2637 | | inline |
2638 | | RecordedSourceSurfaceCreation::~RecordedSourceSurfaceCreation() |
2639 | 0 | { |
2640 | 0 | if (mDataOwned) { |
2641 | 0 | delete [] mData; |
2642 | 0 | } |
2643 | 0 | } |
2644 | | |
2645 | | inline bool |
2646 | | RecordedSourceSurfaceCreation::PlayEvent(Translator *aTranslator) const |
2647 | 0 | { |
2648 | 0 | if (!mData) { |
2649 | 0 | return false; |
2650 | 0 | } |
2651 | 0 | |
2652 | 0 | RefPtr<SourceSurface> src = aTranslator->GetReferenceDrawTarget()-> |
2653 | 0 | CreateSourceSurfaceFromData(mData, mSize, mSize.width * BytesPerPixel(mFormat), mFormat); |
2654 | 0 | aTranslator->AddSourceSurface(mRefPtr, src); |
2655 | 0 | return true; |
2656 | 0 | } |
2657 | | |
2658 | | template<class S> |
2659 | | void |
2660 | | RecordedSourceSurfaceCreation::Record(S &aStream) const |
2661 | 0 | { |
2662 | 0 | WriteElement(aStream, mRefPtr); |
2663 | 0 | WriteElement(aStream, mSize); |
2664 | 0 | WriteElement(aStream, mFormat); |
2665 | 0 | MOZ_ASSERT(mData); |
2666 | 0 | for (int y = 0; y < mSize.height; y++) { |
2667 | 0 | aStream.write((const char*)mData + y * mStride, BytesPerPixel(mFormat) * mSize.width); |
2668 | 0 | } |
2669 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedSourceSurfaceCreation::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedSourceSurfaceCreation::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedSourceSurfaceCreation::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedSourceSurfaceCreation::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2670 | | |
2671 | | template<class S> |
2672 | | RecordedSourceSurfaceCreation::RecordedSourceSurfaceCreation(S &aStream) |
2673 | | : RecordedEventDerived(SOURCESURFACECREATION), mDataOwned(true) |
2674 | 0 | { |
2675 | 0 | ReadElement(aStream, mRefPtr); |
2676 | 0 | ReadElement(aStream, mSize); |
2677 | 0 | ReadElement(aStream, mFormat); |
2678 | 0 | size_t size = mSize.width * mSize.height * BytesPerPixel(mFormat); |
2679 | 0 | mData = new (fallible) uint8_t[size]; |
2680 | 0 | if (!mData) { |
2681 | 0 | gfxCriticalNote << "RecordedSourceSurfaceCreation failed to allocate data of size " << size; |
2682 | 0 | } else { |
2683 | 0 | aStream.read((char*)mData, size); |
2684 | 0 | } |
2685 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedSourceSurfaceCreation::RecordedSourceSurfaceCreation<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedSourceSurfaceCreation::RecordedSourceSurfaceCreation<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedSourceSurfaceCreation::RecordedSourceSurfaceCreation<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2686 | | |
2687 | | inline void |
2688 | | RecordedSourceSurfaceCreation::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2689 | 0 | { |
2690 | 0 | aStringStream << "[" << mRefPtr << "] SourceSurface created (Size: " << mSize.width << "x" << mSize.height << ")"; |
2691 | 0 | } |
2692 | | |
2693 | | inline bool |
2694 | | RecordedSourceSurfaceDestruction::PlayEvent(Translator *aTranslator) const |
2695 | 0 | { |
2696 | 0 | aTranslator->RemoveSourceSurface(mRefPtr); |
2697 | 0 | return true; |
2698 | 0 | } |
2699 | | |
2700 | | template<class S> |
2701 | | void |
2702 | | RecordedSourceSurfaceDestruction::Record(S &aStream) const |
2703 | 0 | { |
2704 | 0 | WriteElement(aStream, mRefPtr); |
2705 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedSourceSurfaceDestruction::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedSourceSurfaceDestruction::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedSourceSurfaceDestruction::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedSourceSurfaceDestruction::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2706 | | |
2707 | | template<class S> |
2708 | | RecordedSourceSurfaceDestruction::RecordedSourceSurfaceDestruction(S &aStream) |
2709 | | : RecordedEventDerived(SOURCESURFACEDESTRUCTION) |
2710 | 0 | { |
2711 | 0 | ReadElement(aStream, mRefPtr); |
2712 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedSourceSurfaceDestruction::RecordedSourceSurfaceDestruction<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedSourceSurfaceDestruction::RecordedSourceSurfaceDestruction<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedSourceSurfaceDestruction::RecordedSourceSurfaceDestruction<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2713 | | |
2714 | | inline void |
2715 | | RecordedSourceSurfaceDestruction::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2716 | 0 | { |
2717 | 0 | aStringStream << "[" << mRefPtr << "] SourceSurface Destroyed"; |
2718 | 0 | } |
2719 | | |
2720 | | inline bool |
2721 | | RecordedExternalSurfaceCreation::PlayEvent(Translator *aTranslator) const |
2722 | 0 | { |
2723 | 0 | RefPtr<SourceSurface> surface = aTranslator->LookupExternalSurface(mKey); |
2724 | 0 | if (!surface) { |
2725 | 0 | return false; |
2726 | 0 | } |
2727 | 0 | |
2728 | 0 | aTranslator->AddSourceSurface(mRefPtr, surface); |
2729 | 0 | return true; |
2730 | 0 | } |
2731 | | |
2732 | | template<class S> |
2733 | | void |
2734 | | RecordedExternalSurfaceCreation::Record(S &aStream) const |
2735 | 0 | { |
2736 | 0 | WriteElement(aStream, mRefPtr); |
2737 | 0 | WriteElement(aStream, mKey); |
2738 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedExternalSurfaceCreation::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedExternalSurfaceCreation::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedExternalSurfaceCreation::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedExternalSurfaceCreation::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2739 | | |
2740 | | template<class S> |
2741 | | RecordedExternalSurfaceCreation::RecordedExternalSurfaceCreation(S &aStream) |
2742 | | : RecordedEventDerived(EXTERNALSURFACECREATION) |
2743 | 0 | { |
2744 | 0 | ReadElement(aStream, mRefPtr); |
2745 | 0 | ReadElement(aStream, mKey); |
2746 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedExternalSurfaceCreation::RecordedExternalSurfaceCreation<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedExternalSurfaceCreation::RecordedExternalSurfaceCreation<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedExternalSurfaceCreation::RecordedExternalSurfaceCreation<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2747 | | |
2748 | | inline void |
2749 | | RecordedExternalSurfaceCreation::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2750 | 0 | { |
2751 | 0 | aStringStream << "[" << mRefPtr << "] SourceSurfaceSharedData created (Key: " << mKey << ")"; |
2752 | 0 | } |
2753 | | |
2754 | | inline |
2755 | | RecordedFilterNodeCreation::~RecordedFilterNodeCreation() |
2756 | | { |
2757 | | } |
2758 | | |
2759 | | inline bool |
2760 | | RecordedFilterNodeCreation::PlayEvent(Translator *aTranslator) const |
2761 | 0 | { |
2762 | 0 | RefPtr<FilterNode> node = aTranslator->GetReferenceDrawTarget()-> |
2763 | 0 | CreateFilter(mType); |
2764 | 0 | aTranslator->AddFilterNode(mRefPtr, node); |
2765 | 0 | return true; |
2766 | 0 | } |
2767 | | |
2768 | | template<class S> |
2769 | | void |
2770 | | RecordedFilterNodeCreation::Record(S &aStream) const |
2771 | 0 | { |
2772 | 0 | WriteElement(aStream, mRefPtr); |
2773 | 0 | WriteElement(aStream, mType); |
2774 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedFilterNodeCreation::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedFilterNodeCreation::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedFilterNodeCreation::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedFilterNodeCreation::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2775 | | |
2776 | | template<class S> |
2777 | | RecordedFilterNodeCreation::RecordedFilterNodeCreation(S &aStream) |
2778 | | : RecordedEventDerived(FILTERNODECREATION) |
2779 | 0 | { |
2780 | 0 | ReadElement(aStream, mRefPtr); |
2781 | 0 | ReadElement(aStream, mType); |
2782 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedFilterNodeCreation::RecordedFilterNodeCreation<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedFilterNodeCreation::RecordedFilterNodeCreation<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedFilterNodeCreation::RecordedFilterNodeCreation<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2783 | | |
2784 | | inline void |
2785 | | RecordedFilterNodeCreation::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2786 | 0 | { |
2787 | 0 | aStringStream << "[" << mRefPtr << "] FilterNode created (Type: " << int(mType) << ")"; |
2788 | 0 | } |
2789 | | |
2790 | | inline bool |
2791 | | RecordedFilterNodeDestruction::PlayEvent(Translator *aTranslator) const |
2792 | 0 | { |
2793 | 0 | aTranslator->RemoveFilterNode(mRefPtr); |
2794 | 0 | return true; |
2795 | 0 | } |
2796 | | |
2797 | | template<class S> |
2798 | | void |
2799 | | RecordedFilterNodeDestruction::Record(S &aStream) const |
2800 | 0 | { |
2801 | 0 | WriteElement(aStream, mRefPtr); |
2802 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedFilterNodeDestruction::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedFilterNodeDestruction::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedFilterNodeDestruction::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedFilterNodeDestruction::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2803 | | |
2804 | | template<class S> |
2805 | | RecordedFilterNodeDestruction::RecordedFilterNodeDestruction(S &aStream) |
2806 | | : RecordedEventDerived(FILTERNODEDESTRUCTION) |
2807 | 0 | { |
2808 | 0 | ReadElement(aStream, mRefPtr); |
2809 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedFilterNodeDestruction::RecordedFilterNodeDestruction<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedFilterNodeDestruction::RecordedFilterNodeDestruction<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedFilterNodeDestruction::RecordedFilterNodeDestruction<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2810 | | |
2811 | | inline void |
2812 | | RecordedFilterNodeDestruction::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2813 | 0 | { |
2814 | 0 | aStringStream << "[" << mRefPtr << "] FilterNode Destroyed"; |
2815 | 0 | } |
2816 | | |
2817 | | inline |
2818 | | RecordedGradientStopsCreation::~RecordedGradientStopsCreation() |
2819 | 0 | { |
2820 | 0 | if (mDataOwned) { |
2821 | 0 | delete [] mStops; |
2822 | 0 | } |
2823 | 0 | } |
2824 | | |
2825 | | inline bool |
2826 | | RecordedGradientStopsCreation::PlayEvent(Translator *aTranslator) const |
2827 | 0 | { |
2828 | 0 | RefPtr<GradientStops> src = aTranslator->GetReferenceDrawTarget()-> |
2829 | 0 | CreateGradientStops(mStops, mNumStops, mExtendMode); |
2830 | 0 | aTranslator->AddGradientStops(mRefPtr, src); |
2831 | 0 | return true; |
2832 | 0 | } |
2833 | | |
2834 | | template<class S> |
2835 | | void |
2836 | | RecordedGradientStopsCreation::Record(S &aStream) const |
2837 | 0 | { |
2838 | 0 | WriteElement(aStream, mRefPtr); |
2839 | 0 | WriteElement(aStream, mExtendMode); |
2840 | 0 | WriteElement(aStream, mNumStops); |
2841 | 0 | aStream.write((const char*)mStops, mNumStops * sizeof(GradientStop)); |
2842 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedGradientStopsCreation::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedGradientStopsCreation::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedGradientStopsCreation::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedGradientStopsCreation::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2843 | | |
2844 | | template<class S> |
2845 | | RecordedGradientStopsCreation::RecordedGradientStopsCreation(S &aStream) |
2846 | | : RecordedEventDerived(GRADIENTSTOPSCREATION), mDataOwned(true) |
2847 | 0 | { |
2848 | 0 | ReadElement(aStream, mRefPtr); |
2849 | 0 | ReadElement(aStream, mExtendMode); |
2850 | 0 | ReadElement(aStream, mNumStops); |
2851 | 0 | mStops = new GradientStop[mNumStops]; |
2852 | 0 |
|
2853 | 0 | aStream.read((char*)mStops, mNumStops * sizeof(GradientStop)); |
2854 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedGradientStopsCreation::RecordedGradientStopsCreation<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedGradientStopsCreation::RecordedGradientStopsCreation<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedGradientStopsCreation::RecordedGradientStopsCreation<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2855 | | |
2856 | | inline void |
2857 | | RecordedGradientStopsCreation::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2858 | 0 | { |
2859 | 0 | aStringStream << "[" << mRefPtr << "] GradientStops created (Stops: " << mNumStops << ")"; |
2860 | 0 | } |
2861 | | |
2862 | | inline bool |
2863 | | RecordedGradientStopsDestruction::PlayEvent(Translator *aTranslator) const |
2864 | 0 | { |
2865 | 0 | aTranslator->RemoveGradientStops(mRefPtr); |
2866 | 0 | return true; |
2867 | 0 | } |
2868 | | |
2869 | | template<class S> |
2870 | | void |
2871 | | RecordedGradientStopsDestruction::Record(S &aStream) const |
2872 | 0 | { |
2873 | 0 | WriteElement(aStream, mRefPtr); |
2874 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedGradientStopsDestruction::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedGradientStopsDestruction::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedGradientStopsDestruction::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedGradientStopsDestruction::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2875 | | |
2876 | | template<class S> |
2877 | | RecordedGradientStopsDestruction::RecordedGradientStopsDestruction(S &aStream) |
2878 | | : RecordedEventDerived(GRADIENTSTOPSDESTRUCTION) |
2879 | 0 | { |
2880 | 0 | ReadElement(aStream, mRefPtr); |
2881 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedGradientStopsDestruction::RecordedGradientStopsDestruction<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedGradientStopsDestruction::RecordedGradientStopsDestruction<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedGradientStopsDestruction::RecordedGradientStopsDestruction<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2882 | | |
2883 | | inline void |
2884 | | RecordedGradientStopsDestruction::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2885 | 0 | { |
2886 | 0 | aStringStream << "[" << mRefPtr << "] GradientStops Destroyed"; |
2887 | 0 | } |
2888 | | |
2889 | | inline bool |
2890 | | RecordedIntoLuminanceSource::PlayEvent(Translator *aTranslator) const |
2891 | 0 | { |
2892 | 0 | RefPtr<SourceSurface> src = aTranslator->LookupDrawTarget(mDT)->IntoLuminanceSource(mLuminanceType, mOpacity); |
2893 | 0 | aTranslator->AddSourceSurface(mRefPtr, src); |
2894 | 0 | return true; |
2895 | 0 | } |
2896 | | |
2897 | | template<class S> |
2898 | | void |
2899 | | RecordedIntoLuminanceSource::Record(S &aStream) const |
2900 | 0 | { |
2901 | 0 | WriteElement(aStream, mRefPtr); |
2902 | 0 | WriteElement(aStream, mDT); |
2903 | 0 | WriteElement(aStream, mLuminanceType); |
2904 | 0 | WriteElement(aStream, mOpacity); |
2905 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedIntoLuminanceSource::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedIntoLuminanceSource::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedIntoLuminanceSource::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedIntoLuminanceSource::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2906 | | |
2907 | | template<class S> |
2908 | | RecordedIntoLuminanceSource::RecordedIntoLuminanceSource(S &aStream) |
2909 | | : RecordedEventDerived(INTOLUMINANCE) |
2910 | 0 | { |
2911 | 0 | ReadElement(aStream, mRefPtr); |
2912 | 0 | ReadElement(aStream, mDT); |
2913 | 0 | ReadElement(aStream, mLuminanceType); |
2914 | 0 | ReadElement(aStream, mOpacity); |
2915 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedIntoLuminanceSource::RecordedIntoLuminanceSource<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedIntoLuminanceSource::RecordedIntoLuminanceSource<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedIntoLuminanceSource::RecordedIntoLuminanceSource<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2916 | | |
2917 | | inline void |
2918 | | RecordedIntoLuminanceSource::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2919 | 0 | { |
2920 | 0 | aStringStream << "[" << mRefPtr << "] Into Luminance Source (DT: " << mDT << ")"; |
2921 | 0 | } |
2922 | | |
2923 | | inline bool |
2924 | | RecordedSnapshot::PlayEvent(Translator *aTranslator) const |
2925 | 0 | { |
2926 | 0 | RefPtr<SourceSurface> src = aTranslator->LookupDrawTarget(mDT)->Snapshot(); |
2927 | 0 | aTranslator->AddSourceSurface(mRefPtr, src); |
2928 | 0 | return true; |
2929 | 0 | } |
2930 | | |
2931 | | template<class S> |
2932 | | void |
2933 | | RecordedSnapshot::Record(S &aStream) const |
2934 | 0 | { |
2935 | 0 | WriteElement(aStream, mRefPtr); |
2936 | 0 | WriteElement(aStream, mDT); |
2937 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedSnapshot::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedSnapshot::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedSnapshot::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedSnapshot::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2938 | | |
2939 | | template<class S> |
2940 | | RecordedSnapshot::RecordedSnapshot(S &aStream) |
2941 | | : RecordedEventDerived(SNAPSHOT) |
2942 | 0 | { |
2943 | 0 | ReadElement(aStream, mRefPtr); |
2944 | 0 | ReadElement(aStream, mDT); |
2945 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedSnapshot::RecordedSnapshot<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedSnapshot::RecordedSnapshot<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedSnapshot::RecordedSnapshot<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
2946 | | |
2947 | | inline void |
2948 | | RecordedSnapshot::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2949 | 0 | { |
2950 | 0 | aStringStream << "[" << mRefPtr << "] Snapshot Created (DT: " << mDT << ")"; |
2951 | 0 | } |
2952 | | |
2953 | | inline |
2954 | | RecordedFontData::~RecordedFontData() |
2955 | 0 | { |
2956 | 0 | delete[] mData; |
2957 | 0 | } |
2958 | | |
2959 | | inline bool |
2960 | | RecordedFontData::PlayEvent(Translator *aTranslator) const |
2961 | 0 | { |
2962 | 0 | if (!mData) { |
2963 | 0 | return false; |
2964 | 0 | } |
2965 | 0 | |
2966 | 0 | RefPtr<NativeFontResource> fontResource = |
2967 | 0 | Factory::CreateNativeFontResource(mData, mFontDetails.size, |
2968 | 0 | aTranslator->GetReferenceDrawTarget()->GetBackendType(), |
2969 | 0 | mType, aTranslator->GetFontContext()); |
2970 | 0 | if (!fontResource) { |
2971 | 0 | return false; |
2972 | 0 | } |
2973 | 0 | |
2974 | 0 | aTranslator->AddNativeFontResource(mFontDetails.fontDataKey, fontResource); |
2975 | 0 | return true; |
2976 | 0 | } |
2977 | | |
2978 | | template<class S> |
2979 | | void |
2980 | | RecordedFontData::Record(S &aStream) const |
2981 | 0 | { |
2982 | 0 | MOZ_ASSERT(mGetFontFileDataSucceeded); |
2983 | 0 |
|
2984 | 0 | WriteElement(aStream, mType); |
2985 | 0 | WriteElement(aStream, mFontDetails.fontDataKey); |
2986 | 0 | WriteElement(aStream, mFontDetails.size); |
2987 | 0 | aStream.write((const char*)mData, mFontDetails.size); |
2988 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedFontData::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedFontData::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedFontData::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedFontData::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
2989 | | |
2990 | | inline void |
2991 | | RecordedFontData::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
2992 | 0 | { |
2993 | 0 | aStringStream << "Font Data of size " << mFontDetails.size; |
2994 | 0 | } |
2995 | | |
2996 | | inline void |
2997 | | RecordedFontData::SetFontData(const uint8_t *aData, uint32_t aSize, uint32_t aIndex) |
2998 | 0 | { |
2999 | 0 | mData = new (fallible) uint8_t[aSize]; |
3000 | 0 | if (!mData) { |
3001 | 0 | gfxCriticalNote << "RecordedFontData failed to allocate data for recording of size " << aSize; |
3002 | 0 | } else { |
3003 | 0 | memcpy(mData, aData, aSize); |
3004 | 0 | } |
3005 | 0 | mFontDetails.fontDataKey = |
3006 | 0 | SFNTData::GetUniqueKey(aData, aSize, 0, nullptr); |
3007 | 0 | mFontDetails.size = aSize; |
3008 | 0 | mFontDetails.index = aIndex; |
3009 | 0 | } |
3010 | | |
3011 | | inline bool |
3012 | | RecordedFontData::GetFontDetails(RecordedFontDetails& fontDetails) |
3013 | 0 | { |
3014 | 0 | if (!mGetFontFileDataSucceeded) { |
3015 | 0 | return false; |
3016 | 0 | } |
3017 | 0 | |
3018 | 0 | fontDetails.fontDataKey = mFontDetails.fontDataKey; |
3019 | 0 | fontDetails.size = mFontDetails.size; |
3020 | 0 | fontDetails.index = mFontDetails.index; |
3021 | 0 | return true; |
3022 | 0 | } |
3023 | | |
3024 | | template<class S> |
3025 | | RecordedFontData::RecordedFontData(S &aStream) |
3026 | | : RecordedEventDerived(FONTDATA) |
3027 | | , mType(FontType::UNKNOWN) |
3028 | | , mData(nullptr) |
3029 | 0 | { |
3030 | 0 | ReadElement(aStream, mType); |
3031 | 0 | ReadElement(aStream, mFontDetails.fontDataKey); |
3032 | 0 | ReadElement(aStream, mFontDetails.size); |
3033 | 0 | mData = new (fallible) uint8_t[mFontDetails.size]; |
3034 | 0 | if (!mData) { |
3035 | 0 | gfxCriticalNote << "RecordedFontData failed to allocate data for playback of size " << mFontDetails.size; |
3036 | 0 | } else { |
3037 | 0 | aStream.read((char*)mData, mFontDetails.size); |
3038 | 0 | } |
3039 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedFontData::RecordedFontData<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedFontData::RecordedFontData<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedFontData::RecordedFontData<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
3040 | | |
3041 | | inline |
3042 | | RecordedFontDescriptor::~RecordedFontDescriptor() |
3043 | 0 | { |
3044 | 0 | } |
3045 | | |
3046 | | inline bool |
3047 | | RecordedFontDescriptor::PlayEvent(Translator *aTranslator) const |
3048 | 0 | { |
3049 | 0 | RefPtr<UnscaledFont> font = |
3050 | 0 | Factory::CreateUnscaledFontFromFontDescriptor(mType, mData.data(), mData.size(), mIndex); |
3051 | 0 | if (!font) { |
3052 | 0 | gfxDevCrash(LogReason::InvalidFont) << |
3053 | 0 | "Failed creating UnscaledFont of type " << int(mType) << " from font descriptor"; |
3054 | 0 | return false; |
3055 | 0 | } |
3056 | 0 |
|
3057 | 0 | aTranslator->AddUnscaledFont(mRefPtr, font); |
3058 | 0 | return true; |
3059 | 0 | } |
3060 | | |
3061 | | template<class S> |
3062 | | void |
3063 | | RecordedFontDescriptor::Record(S &aStream) const |
3064 | 0 | { |
3065 | 0 | MOZ_ASSERT(mHasDesc); |
3066 | 0 | WriteElement(aStream, mType); |
3067 | 0 | WriteElement(aStream, mRefPtr); |
3068 | 0 | WriteElement(aStream, mIndex); |
3069 | 0 | WriteElement(aStream, (size_t)mData.size()); |
3070 | 0 | aStream.write((char*)mData.data(), mData.size()); |
3071 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedFontDescriptor::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedFontDescriptor::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedFontDescriptor::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedFontDescriptor::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
3072 | | |
3073 | | inline void |
3074 | | RecordedFontDescriptor::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
3075 | 0 | { |
3076 | 0 | aStringStream << "[" << mRefPtr << "] Font Descriptor"; |
3077 | 0 | } |
3078 | | |
3079 | | inline void |
3080 | | RecordedFontDescriptor::SetFontDescriptor(const uint8_t* aData, uint32_t aSize, uint32_t aIndex) |
3081 | 0 | { |
3082 | 0 | mData.assign(aData, aData + aSize); |
3083 | 0 | mIndex = aIndex; |
3084 | 0 | } |
3085 | | |
3086 | | template<class S> |
3087 | | RecordedFontDescriptor::RecordedFontDescriptor(S &aStream) |
3088 | | : RecordedEventDerived(FONTDESC) |
3089 | 0 | { |
3090 | 0 | ReadElement(aStream, mType); |
3091 | 0 | ReadElement(aStream, mRefPtr); |
3092 | 0 | ReadElement(aStream, mIndex); |
3093 | 0 |
|
3094 | 0 | size_t size; |
3095 | 0 | ReadElement(aStream, size); |
3096 | 0 | mData.resize(size); |
3097 | 0 | aStream.read((char*)mData.data(), size); |
3098 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedFontDescriptor::RecordedFontDescriptor<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedFontDescriptor::RecordedFontDescriptor<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedFontDescriptor::RecordedFontDescriptor<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
3099 | | |
3100 | | inline bool |
3101 | | RecordedUnscaledFontCreation::PlayEvent(Translator *aTranslator) const |
3102 | 0 | { |
3103 | 0 | NativeFontResource *fontResource = aTranslator->LookupNativeFontResource(mFontDataKey); |
3104 | 0 | if (!fontResource) { |
3105 | 0 | gfxDevCrash(LogReason::NativeFontResourceNotFound) << |
3106 | 0 | "NativeFontResource lookup failed for key |" << hexa(mFontDataKey) << "|."; |
3107 | 0 | return false; |
3108 | 0 | } |
3109 | 0 |
|
3110 | 0 | RefPtr<UnscaledFont> unscaledFont = |
3111 | 0 | fontResource->CreateUnscaledFont(mIndex, mInstanceData.data(), mInstanceData.size()); |
3112 | 0 | aTranslator->AddUnscaledFont(mRefPtr, unscaledFont); |
3113 | 0 | return true; |
3114 | 0 | } |
3115 | | |
3116 | | template<class S> |
3117 | | void |
3118 | | RecordedUnscaledFontCreation::Record(S &aStream) const |
3119 | 0 | { |
3120 | 0 | WriteElement(aStream, mRefPtr); |
3121 | 0 | WriteElement(aStream, mFontDataKey); |
3122 | 0 | WriteElement(aStream, mIndex); |
3123 | 0 | WriteElement(aStream, (size_t)mInstanceData.size()); |
3124 | 0 | aStream.write((char*)mInstanceData.data(), mInstanceData.size()); |
3125 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedUnscaledFontCreation::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedUnscaledFontCreation::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedUnscaledFontCreation::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedUnscaledFontCreation::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
3126 | | |
3127 | | inline void |
3128 | | RecordedUnscaledFontCreation::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
3129 | 0 | { |
3130 | 0 | aStringStream << "[" << mRefPtr << "] UnscaledFont Created"; |
3131 | 0 | } |
3132 | | |
3133 | | inline void |
3134 | | RecordedUnscaledFontCreation::SetFontInstanceData(const uint8_t *aData, uint32_t aSize) |
3135 | 0 | { |
3136 | 0 | mInstanceData.assign(aData, aData + aSize); |
3137 | 0 | } |
3138 | | |
3139 | | template<class S> |
3140 | | RecordedUnscaledFontCreation::RecordedUnscaledFontCreation(S &aStream) |
3141 | | : RecordedEventDerived(UNSCALEDFONTCREATION) |
3142 | 0 | { |
3143 | 0 | ReadElement(aStream, mRefPtr); |
3144 | 0 | ReadElement(aStream, mFontDataKey); |
3145 | 0 | ReadElement(aStream, mIndex); |
3146 | 0 |
|
3147 | 0 | size_t size; |
3148 | 0 | ReadElement(aStream, size); |
3149 | 0 | mInstanceData.resize(size); |
3150 | 0 | aStream.read((char*)mInstanceData.data(), size); |
3151 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedUnscaledFontCreation::RecordedUnscaledFontCreation<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedUnscaledFontCreation::RecordedUnscaledFontCreation<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedUnscaledFontCreation::RecordedUnscaledFontCreation<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
3152 | | |
3153 | | inline bool |
3154 | | RecordedUnscaledFontDestruction::PlayEvent(Translator *aTranslator) const |
3155 | 0 | { |
3156 | 0 | aTranslator->RemoveUnscaledFont(mRefPtr); |
3157 | 0 | return true; |
3158 | 0 | } |
3159 | | |
3160 | | template<class S> |
3161 | | void |
3162 | | RecordedUnscaledFontDestruction::Record(S &aStream) const |
3163 | 0 | { |
3164 | 0 | WriteElement(aStream, mRefPtr); |
3165 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedUnscaledFontDestruction::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedUnscaledFontDestruction::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedUnscaledFontDestruction::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedUnscaledFontDestruction::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
3166 | | |
3167 | | template<class S> |
3168 | | RecordedUnscaledFontDestruction::RecordedUnscaledFontDestruction(S &aStream) |
3169 | | : RecordedEventDerived(UNSCALEDFONTDESTRUCTION) |
3170 | 0 | { |
3171 | 0 | ReadElement(aStream, mRefPtr); |
3172 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedUnscaledFontDestruction::RecordedUnscaledFontDestruction<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedUnscaledFontDestruction::RecordedUnscaledFontDestruction<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedUnscaledFontDestruction::RecordedUnscaledFontDestruction<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
3173 | | |
3174 | | inline void |
3175 | | RecordedUnscaledFontDestruction::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
3176 | 0 | { |
3177 | 0 | aStringStream << "[" << mRefPtr << "] UnscaledFont Destroyed"; |
3178 | 0 | } |
3179 | | |
3180 | | inline bool |
3181 | | RecordedScaledFontCreation::PlayEvent(Translator *aTranslator) const |
3182 | 0 | { |
3183 | 0 | UnscaledFont* unscaledFont = aTranslator->LookupUnscaledFont(mUnscaledFont); |
3184 | 0 | if (!unscaledFont) { |
3185 | 0 | gfxDevCrash(LogReason::UnscaledFontNotFound) << |
3186 | 0 | "UnscaledFont lookup failed for key |" << hexa(mUnscaledFont) << "|."; |
3187 | 0 | return false; |
3188 | 0 | } |
3189 | 0 |
|
3190 | 0 | RefPtr<ScaledFont> scaledFont = |
3191 | 0 | unscaledFont->CreateScaledFont(mGlyphSize, |
3192 | 0 | mInstanceData.data(), mInstanceData.size(), |
3193 | 0 | mVariations.data(), mVariations.size()); |
3194 | 0 | aTranslator->AddScaledFont(mRefPtr, scaledFont); |
3195 | 0 | return true; |
3196 | 0 | } |
3197 | | |
3198 | | template<class S> |
3199 | | void |
3200 | | RecordedScaledFontCreation::Record(S &aStream) const |
3201 | 0 | { |
3202 | 0 | WriteElement(aStream, mRefPtr); |
3203 | 0 | WriteElement(aStream, mUnscaledFont); |
3204 | 0 | WriteElement(aStream, mGlyphSize); |
3205 | 0 | WriteElement(aStream, (size_t)mInstanceData.size()); |
3206 | 0 | aStream.write((char*)mInstanceData.data(), mInstanceData.size()); |
3207 | 0 | WriteElement(aStream, (size_t)mVariations.size()); |
3208 | 0 | aStream.write((char*)mVariations.data(), sizeof(FontVariation) * mVariations.size()); |
3209 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedScaledFontCreation::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedScaledFontCreation::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedScaledFontCreation::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedScaledFontCreation::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
3210 | | |
3211 | | inline void |
3212 | | RecordedScaledFontCreation::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
3213 | 0 | { |
3214 | 0 | aStringStream << "[" << mRefPtr << "] ScaledFont Created"; |
3215 | 0 | } |
3216 | | |
3217 | | inline void |
3218 | | RecordedScaledFontCreation::SetFontInstanceData(const uint8_t *aData, uint32_t aSize, |
3219 | | const FontVariation* aVariations, uint32_t aNumVariations) |
3220 | 0 | { |
3221 | 0 | mInstanceData.assign(aData, aData + aSize); |
3222 | 0 | mVariations.assign(aVariations, aVariations + aNumVariations); |
3223 | 0 | } |
3224 | | |
3225 | | template<class S> |
3226 | | RecordedScaledFontCreation::RecordedScaledFontCreation(S &aStream) |
3227 | | : RecordedEventDerived(SCALEDFONTCREATION) |
3228 | 0 | { |
3229 | 0 | ReadElement(aStream, mRefPtr); |
3230 | 0 | ReadElement(aStream, mUnscaledFont); |
3231 | 0 | ReadElement(aStream, mGlyphSize); |
3232 | 0 |
|
3233 | 0 | size_t size; |
3234 | 0 | ReadElement(aStream, size); |
3235 | 0 | mInstanceData.resize(size); |
3236 | 0 | aStream.read((char*)mInstanceData.data(), size); |
3237 | 0 | size_t numVariations; |
3238 | 0 | ReadElement(aStream, numVariations); |
3239 | 0 | mVariations.resize(numVariations); |
3240 | 0 | aStream.read((char*)mVariations.data(), sizeof(FontVariation) * numVariations); |
3241 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedScaledFontCreation::RecordedScaledFontCreation<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedScaledFontCreation::RecordedScaledFontCreation<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedScaledFontCreation::RecordedScaledFontCreation<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
3242 | | |
3243 | | inline bool |
3244 | | RecordedScaledFontDestruction::PlayEvent(Translator *aTranslator) const |
3245 | 0 | { |
3246 | 0 | aTranslator->RemoveScaledFont(mRefPtr); |
3247 | 0 | return true; |
3248 | 0 | } |
3249 | | |
3250 | | template<class S> |
3251 | | void |
3252 | | RecordedScaledFontDestruction::Record(S &aStream) const |
3253 | 0 | { |
3254 | 0 | WriteElement(aStream, mRefPtr); |
3255 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedScaledFontDestruction::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedScaledFontDestruction::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedScaledFontDestruction::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedScaledFontDestruction::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
3256 | | |
3257 | | template<class S> |
3258 | | RecordedScaledFontDestruction::RecordedScaledFontDestruction(S &aStream) |
3259 | | : RecordedEventDerived(SCALEDFONTDESTRUCTION) |
3260 | 0 | { |
3261 | 0 | ReadElement(aStream, mRefPtr); |
3262 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedScaledFontDestruction::RecordedScaledFontDestruction<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedScaledFontDestruction::RecordedScaledFontDestruction<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedScaledFontDestruction::RecordedScaledFontDestruction<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
3263 | | |
3264 | | inline void |
3265 | | RecordedScaledFontDestruction::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
3266 | 0 | { |
3267 | 0 | aStringStream << "[" << mRefPtr << "] ScaledFont Destroyed"; |
3268 | 0 | } |
3269 | | |
3270 | | inline bool |
3271 | | RecordedMaskSurface::PlayEvent(Translator *aTranslator) const |
3272 | 0 | { |
3273 | 0 | aTranslator->LookupDrawTarget(mDT)-> |
3274 | 0 | MaskSurface(*GenericPattern(mPattern, aTranslator), |
3275 | 0 | aTranslator->LookupSourceSurface(mRefMask), |
3276 | 0 | mOffset, mOptions); |
3277 | 0 | return true; |
3278 | 0 | } |
3279 | | |
3280 | | template<class S> |
3281 | | void |
3282 | | RecordedMaskSurface::Record(S &aStream) const |
3283 | 0 | { |
3284 | 0 | RecordedDrawingEvent::Record(aStream); |
3285 | 0 | RecordPatternData(aStream, mPattern); |
3286 | 0 | WriteElement(aStream, mRefMask); |
3287 | 0 | WriteElement(aStream, mOffset); |
3288 | 0 | WriteElement(aStream, mOptions); |
3289 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedMaskSurface::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedMaskSurface::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedMaskSurface::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedMaskSurface::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
3290 | | |
3291 | | template<class S> |
3292 | | RecordedMaskSurface::RecordedMaskSurface(S &aStream) |
3293 | | : RecordedDrawingEvent(MASKSURFACE, aStream) |
3294 | 0 | { |
3295 | 0 | ReadPatternData(aStream, mPattern); |
3296 | 0 | ReadElement(aStream, mRefMask); |
3297 | 0 | ReadElement(aStream, mOffset); |
3298 | 0 | ReadElement(aStream, mOptions); |
3299 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedMaskSurface::RecordedMaskSurface<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedMaskSurface::RecordedMaskSurface<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedMaskSurface::RecordedMaskSurface<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
3300 | | |
3301 | | inline void |
3302 | | RecordedMaskSurface::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
3303 | 0 | { |
3304 | 0 | aStringStream << "[" << mDT << "] MaskSurface (" << mRefMask << ") Offset: (" << mOffset.x << "x" << mOffset.y << ") Pattern: "; |
3305 | 0 | OutputSimplePatternInfo(mPattern, aStringStream); |
3306 | 0 | } |
3307 | | |
3308 | | template<typename T> |
3309 | | void |
3310 | | ReplaySetAttribute(FilterNode *aNode, uint32_t aIndex, T aValue) |
3311 | 0 | { |
3312 | 0 | aNode->SetAttribute(aIndex, aValue); |
3313 | 0 | } Unexecuted instantiation: void mozilla::gfx::ReplaySetAttribute<bool>(mozilla::gfx::FilterNode*, unsigned int, bool) Unexecuted instantiation: void mozilla::gfx::ReplaySetAttribute<unsigned int>(mozilla::gfx::FilterNode*, unsigned int, unsigned int) Unexecuted instantiation: void mozilla::gfx::ReplaySetAttribute<float>(mozilla::gfx::FilterNode*, unsigned int, float) Unexecuted instantiation: void mozilla::gfx::ReplaySetAttribute<mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float> >(mozilla::gfx::FilterNode*, unsigned int, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>) Unexecuted instantiation: void mozilla::gfx::ReplaySetAttribute<mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits> >(mozilla::gfx::FilterNode*, unsigned int, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>) Unexecuted instantiation: void mozilla::gfx::ReplaySetAttribute<mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits> >(mozilla::gfx::FilterNode*, unsigned int, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>) Unexecuted instantiation: void mozilla::gfx::ReplaySetAttribute<mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float> >(mozilla::gfx::FilterNode*, unsigned int, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>) Unexecuted instantiation: void mozilla::gfx::ReplaySetAttribute<mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> >(mozilla::gfx::FilterNode*, unsigned int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>) Unexecuted instantiation: void mozilla::gfx::ReplaySetAttribute<mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float> >(mozilla::gfx::FilterNode*, unsigned int, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>) Unexecuted instantiation: void mozilla::gfx::ReplaySetAttribute<mozilla::gfx::BaseMatrix<float> >(mozilla::gfx::FilterNode*, unsigned int, mozilla::gfx::BaseMatrix<float>) Unexecuted instantiation: void mozilla::gfx::ReplaySetAttribute<mozilla::gfx::Matrix5x4>(mozilla::gfx::FilterNode*, unsigned int, mozilla::gfx::Matrix5x4) Unexecuted instantiation: void mozilla::gfx::ReplaySetAttribute<mozilla::gfx::Point3DTyped<mozilla::gfx::UnknownUnits, float> >(mozilla::gfx::FilterNode*, unsigned int, mozilla::gfx::Point3DTyped<mozilla::gfx::UnknownUnits, float>) Unexecuted instantiation: void mozilla::gfx::ReplaySetAttribute<mozilla::gfx::Color>(mozilla::gfx::FilterNode*, unsigned int, mozilla::gfx::Color) |
3314 | | |
3315 | | inline bool |
3316 | | RecordedFilterNodeSetAttribute::PlayEvent(Translator *aTranslator) const |
3317 | 0 | { |
3318 | 0 | #define REPLAY_SET_ATTRIBUTE(type, argtype) \ |
3319 | 0 | case ARGTYPE_##argtype: \ |
3320 | 0 | ReplaySetAttribute(aTranslator->LookupFilterNode(mNode), mIndex, *(type*)&mPayload.front()); \ |
3321 | 0 | break |
3322 | 0 |
|
3323 | 0 | switch (mArgType) { |
3324 | 0 | REPLAY_SET_ATTRIBUTE(bool, BOOL); |
3325 | 0 | REPLAY_SET_ATTRIBUTE(uint32_t, UINT32); |
3326 | 0 | REPLAY_SET_ATTRIBUTE(Float, FLOAT); |
3327 | 0 | REPLAY_SET_ATTRIBUTE(Size, SIZE); |
3328 | 0 | REPLAY_SET_ATTRIBUTE(IntSize, INTSIZE); |
3329 | 0 | REPLAY_SET_ATTRIBUTE(IntPoint, INTPOINT); |
3330 | 0 | REPLAY_SET_ATTRIBUTE(Rect, RECT); |
3331 | 0 | REPLAY_SET_ATTRIBUTE(IntRect, INTRECT); |
3332 | 0 | REPLAY_SET_ATTRIBUTE(Point, POINT); |
3333 | 0 | REPLAY_SET_ATTRIBUTE(Matrix, MATRIX); |
3334 | 0 | REPLAY_SET_ATTRIBUTE(Matrix5x4, MATRIX5X4); |
3335 | 0 | REPLAY_SET_ATTRIBUTE(Point3D, POINT3D); |
3336 | 0 | REPLAY_SET_ATTRIBUTE(Color, COLOR); |
3337 | 0 | case ARGTYPE_FLOAT_ARRAY: |
3338 | 0 | aTranslator->LookupFilterNode(mNode)->SetAttribute( |
3339 | 0 | mIndex, |
3340 | 0 | reinterpret_cast<const Float*>(&mPayload.front()), |
3341 | 0 | mPayload.size() / sizeof(Float)); |
3342 | 0 | break; |
3343 | 0 | } |
3344 | 0 | |
3345 | 0 | return true; |
3346 | 0 | } |
3347 | | |
3348 | | template<class S> |
3349 | | void |
3350 | | RecordedFilterNodeSetAttribute::Record(S &aStream) const |
3351 | 0 | { |
3352 | 0 | WriteElement(aStream, mNode); |
3353 | 0 | WriteElement(aStream, mIndex); |
3354 | 0 | WriteElement(aStream, mArgType); |
3355 | 0 | WriteElement(aStream, uint64_t(mPayload.size())); |
3356 | 0 | aStream.write((const char*)&mPayload.front(), mPayload.size()); |
3357 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedFilterNodeSetAttribute::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedFilterNodeSetAttribute::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedFilterNodeSetAttribute::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedFilterNodeSetAttribute::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
3358 | | |
3359 | | template<class S> |
3360 | | RecordedFilterNodeSetAttribute::RecordedFilterNodeSetAttribute(S &aStream) |
3361 | | : RecordedEventDerived(FILTERNODESETATTRIBUTE) |
3362 | 0 | { |
3363 | 0 | ReadElement(aStream, mNode); |
3364 | 0 | ReadElement(aStream, mIndex); |
3365 | 0 | ReadElement(aStream, mArgType); |
3366 | 0 | uint64_t size; |
3367 | 0 | ReadElement(aStream, size); |
3368 | 0 | mPayload.resize(size_t(size)); |
3369 | 0 | aStream.read((char*)&mPayload.front(), size); |
3370 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedFilterNodeSetAttribute::RecordedFilterNodeSetAttribute<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedFilterNodeSetAttribute::RecordedFilterNodeSetAttribute<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedFilterNodeSetAttribute::RecordedFilterNodeSetAttribute<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
3371 | | |
3372 | | inline void |
3373 | | RecordedFilterNodeSetAttribute::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
3374 | 0 | { |
3375 | 0 | aStringStream << "[" << mNode << "] SetAttribute (" << mIndex << ")"; |
3376 | 0 | } |
3377 | | |
3378 | | inline bool |
3379 | | RecordedFilterNodeSetInput::PlayEvent(Translator *aTranslator) const |
3380 | 0 | { |
3381 | 0 | if (mInputFilter) { |
3382 | 0 | aTranslator->LookupFilterNode(mNode)->SetInput( |
3383 | 0 | mIndex, aTranslator->LookupFilterNode(mInputFilter)); |
3384 | 0 | } else { |
3385 | 0 | aTranslator->LookupFilterNode(mNode)->SetInput( |
3386 | 0 | mIndex, aTranslator->LookupSourceSurface(mInputSurface)); |
3387 | 0 | } |
3388 | 0 |
|
3389 | 0 | return true; |
3390 | 0 | } |
3391 | | |
3392 | | template<class S> |
3393 | | void |
3394 | | RecordedFilterNodeSetInput::Record(S &aStream) const |
3395 | 0 | { |
3396 | 0 | WriteElement(aStream, mNode); |
3397 | 0 | WriteElement(aStream, mIndex); |
3398 | 0 | WriteElement(aStream, mInputFilter); |
3399 | 0 | WriteElement(aStream, mInputSurface); |
3400 | 0 | } Unexecuted instantiation: void mozilla::gfx::RecordedFilterNodeSetInput::Record<std::__1::basic_ostream<char, std::__1::char_traits<char> > >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: void mozilla::gfx::RecordedFilterNodeSetInput::Record<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) const Unexecuted instantiation: void mozilla::gfx::RecordedFilterNodeSetInput::Record<mozilla::gfx::SizeCollector>(mozilla::gfx::SizeCollector&) const Unexecuted instantiation: void mozilla::gfx::RecordedFilterNodeSetInput::Record<mozilla::gfx::MemWriter>(mozilla::gfx::MemWriter&) const |
3401 | | |
3402 | | template<class S> |
3403 | | RecordedFilterNodeSetInput::RecordedFilterNodeSetInput(S &aStream) |
3404 | | : RecordedEventDerived(FILTERNODESETINPUT) |
3405 | 0 | { |
3406 | 0 | ReadElement(aStream, mNode); |
3407 | 0 | ReadElement(aStream, mIndex); |
3408 | 0 | ReadElement(aStream, mInputFilter); |
3409 | 0 | ReadElement(aStream, mInputSurface); |
3410 | 0 | } Unexecuted instantiation: InlineTranslator.cpp:mozilla::gfx::RecordedFilterNodeSetInput::RecordedFilterNodeSetInput<mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader>(mozilla::gfx::InlineTranslator::TranslateRecording(char*, unsigned long)::MemReader&) Unexecuted instantiation: mozilla::gfx::RecordedFilterNodeSetInput::RecordedFilterNodeSetInput<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&) Unexecuted instantiation: mozilla::gfx::RecordedFilterNodeSetInput::RecordedFilterNodeSetInput<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&) |
3411 | | |
3412 | | inline void |
3413 | | RecordedFilterNodeSetInput::OutputSimpleEventInfo(std::stringstream &aStringStream) const |
3414 | 0 | { |
3415 | 0 | aStringStream << "[" << mNode << "] SetAttribute (" << mIndex << ", "; |
3416 | 0 |
|
3417 | 0 | if (mInputFilter) { |
3418 | 0 | aStringStream << "Filter: " << mInputFilter; |
3419 | 0 | } else { |
3420 | 0 | aStringStream << "Surface: " << mInputSurface; |
3421 | 0 | } |
3422 | 0 |
|
3423 | 0 | aStringStream << ")"; |
3424 | 0 | } |
3425 | | |
3426 | | #define LOAD_EVENT_TYPE(_typeenum, _class) \ |
3427 | 0 | case _typeenum: return new _class(aStream) |
3428 | | |
3429 | | #define FOR_EACH_EVENT(f) \ |
3430 | 0 | f(DRAWTARGETCREATION, RecordedDrawTargetCreation); \ |
3431 | 0 | f(DRAWTARGETDESTRUCTION, RecordedDrawTargetDestruction); \ |
3432 | 0 | f(FILLRECT, RecordedFillRect); \ |
3433 | 0 | f(STROKERECT, RecordedStrokeRect); \ |
3434 | 0 | f(STROKELINE, RecordedStrokeLine); \ |
3435 | 0 | f(CLEARRECT, RecordedClearRect); \ |
3436 | 0 | f(COPYSURFACE, RecordedCopySurface); \ |
3437 | 0 | f(SETTRANSFORM, RecordedSetTransform); \ |
3438 | 0 | f(PUSHCLIPRECT, RecordedPushClipRect); \ |
3439 | 0 | f(PUSHCLIP, RecordedPushClip); \ |
3440 | 0 | f(POPCLIP, RecordedPopClip); \ |
3441 | 0 | f(FILL, RecordedFill); \ |
3442 | 0 | f(FILLGLYPHS, RecordedFillGlyphs); \ |
3443 | 0 | f(MASK, RecordedMask); \ |
3444 | 0 | f(STROKE, RecordedStroke); \ |
3445 | 0 | f(DRAWSURFACE, RecordedDrawSurface); \ |
3446 | 0 | f(DRAWSURFACEWITHSHADOW, RecordedDrawSurfaceWithShadow); \ |
3447 | 0 | f(DRAWFILTER, RecordedDrawFilter); \ |
3448 | 0 | f(PATHCREATION, RecordedPathCreation); \ |
3449 | 0 | f(PATHDESTRUCTION, RecordedPathDestruction); \ |
3450 | 0 | f(SOURCESURFACECREATION, RecordedSourceSurfaceCreation); \ |
3451 | 0 | f(SOURCESURFACEDESTRUCTION, RecordedSourceSurfaceDestruction); \ |
3452 | 0 | f(FILTERNODECREATION, RecordedFilterNodeCreation); \ |
3453 | 0 | f(FILTERNODEDESTRUCTION, RecordedFilterNodeDestruction); \ |
3454 | 0 | f(GRADIENTSTOPSCREATION, RecordedGradientStopsCreation); \ |
3455 | 0 | f(GRADIENTSTOPSDESTRUCTION, RecordedGradientStopsDestruction); \ |
3456 | 0 | f(SNAPSHOT, RecordedSnapshot); \ |
3457 | 0 | f(SCALEDFONTCREATION, RecordedScaledFontCreation); \ |
3458 | 0 | f(SCALEDFONTDESTRUCTION, RecordedScaledFontDestruction); \ |
3459 | 0 | f(MASKSURFACE, RecordedMaskSurface); \ |
3460 | 0 | f(FILTERNODESETATTRIBUTE, RecordedFilterNodeSetAttribute); \ |
3461 | 0 | f(FILTERNODESETINPUT, RecordedFilterNodeSetInput); \ |
3462 | 0 | f(CREATESIMILARDRAWTARGET, RecordedCreateSimilarDrawTarget); \ |
3463 | 0 | f(CREATECLIPPEDDRAWTARGET, RecordedCreateClippedDrawTarget); \ |
3464 | 0 | f(FONTDATA, RecordedFontData); \ |
3465 | 0 | f(FONTDESC, RecordedFontDescriptor); \ |
3466 | 0 | f(PUSHLAYER, RecordedPushLayer); \ |
3467 | 0 | f(PUSHLAYERWITHBLEND, RecordedPushLayerWithBlend); \ |
3468 | 0 | f(POPLAYER, RecordedPopLayer); \ |
3469 | 0 | f(UNSCALEDFONTCREATION, RecordedUnscaledFontCreation); \ |
3470 | 0 | f(UNSCALEDFONTDESTRUCTION, RecordedUnscaledFontDestruction); \ |
3471 | 0 | f(INTOLUMINANCE, RecordedIntoLuminanceSource); \ |
3472 | 0 | f(EXTERNALSURFACECREATION, RecordedExternalSurfaceCreation); |
3473 | | |
3474 | | template<class S> |
3475 | | RecordedEvent * |
3476 | | RecordedEvent::LoadEvent(S &aStream, EventType aType) |
3477 | 0 | { |
3478 | 0 | switch (aType) { |
3479 | 0 | FOR_EACH_EVENT(LOAD_EVENT_TYPE) |
3480 | 0 | default: |
3481 | 0 | return nullptr; |
3482 | 0 | } |
3483 | 0 | } Unexecuted instantiation: mozilla::gfx::RecordedEvent* mozilla::gfx::RecordedEvent::LoadEvent<std::__1::basic_istream<char, std::__1::char_traits<char> > >(std::__1::basic_istream<char, std::__1::char_traits<char> >&, mozilla::gfx::RecordedEvent::EventType) Unexecuted instantiation: mozilla::gfx::RecordedEvent* mozilla::gfx::RecordedEvent::LoadEvent<mozilla::gfx::EventStream>(mozilla::gfx::EventStream&, mozilla::gfx::RecordedEvent::EventType) |
3484 | | |
3485 | | #define DO_WITH_EVENT_TYPE(_typeenum, _class) \ |
3486 | 0 | case _typeenum: { auto e = _class(aStream); return f(&e); } |
3487 | | |
3488 | | template<class S, class F> |
3489 | | bool |
3490 | | RecordedEvent::DoWithEvent(S &aStream, EventType aType, F f) |
3491 | 0 | { |
3492 | 0 | switch (aType) { |
3493 | 0 | FOR_EACH_EVENT(DO_WITH_EVENT_TYPE) |
3494 | 0 | default: |
3495 | 0 | return false; |
3496 | 0 | } |
3497 | 0 | } |
3498 | | |
3499 | | |
3500 | | |
3501 | | } // namespace gfx |
3502 | | } // namespace mozilla |
3503 | | |
3504 | | #endif |