diff options
Diffstat (limited to 'libs/hwui/pipeline/skia/RenderNodeDrawable.h')
-rw-r--r-- | libs/hwui/pipeline/skia/RenderNodeDrawable.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/hwui/pipeline/skia/RenderNodeDrawable.h b/libs/hwui/pipeline/skia/RenderNodeDrawable.h index ef21cd8a29b5..d746978b0a61 100644 --- a/libs/hwui/pipeline/skia/RenderNodeDrawable.h +++ b/libs/hwui/pipeline/skia/RenderNodeDrawable.h @@ -16,6 +16,8 @@ #pragma once +#include "SkiaUtils.h" + #include <SkCanvas.h> #include <SkDrawable.h> #include <SkMatrix.h> @@ -47,11 +49,9 @@ public: * layer into the canvas. */ explicit RenderNodeDrawable(RenderNode* node, SkCanvas* canvas, bool composeLayer = true, - bool inReorderingSection = false) - : mRenderNode(node) - , mRecordedTransform(canvas->getTotalMatrix()) - , mComposeLayer(composeLayer) - , mInReorderingSection(inReorderingSection) {} + bool inReorderingSection = false); + + ~RenderNodeDrawable(); /** * Draws into the canvas this render node and its children. If the node is marked as a @@ -91,7 +91,7 @@ protected: virtual SkRect onGetBounds() override { // We don't want to enable a record time quick reject because the properties // of the RenderNode may be updated on subsequent frames. - return SkRect::MakeLargest(); + return SkRectMakeLargest(); } /** * This function draws into a canvas as forceDraw, but does nothing if the render node has a |