Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkPDFGraphicStackState.h
Go to the documentation of this file.
1// Copyright 2019 Google LLC.
2// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3#ifndef SkPDFGraphicStackState_DEFINED
4#define SkPDFGraphicStackState_DEFINED
5
11
13
14// It is important to not confuse SkPDFGraphicStackState with SkPDFGraphicState, the
15// later being our representation of an object in the PDF file.
25 // Must use stack for matrix, and for clip, plus one for no matrix or clip.
26 inline static constexpr int kMaxStackDepth = 2;
28 int fStackDepth = 0;
30
32 void updateClip(const SkClipStack* clipStack, const SkIRect& bounds);
33 void updateMatrix(const SkMatrix& matrix);
34 void updateDrawingState(const Entry& state);
35 void push();
36 void pop();
37 void drainStack();
39};
40
41#endif // SkPDFGraphicStackState_DEFINED
constexpr float SK_FloatNaN
static const uint32_t kWideOpenGenID
static const SkMatrix & I()
float SkScalar
Definition extension.cpp:12
struct MyStruct s
AtkStateType state
Entry fEntries[kMaxStackDepth+1]
void updateMatrix(const SkMatrix &matrix)
SkPDFGraphicStackState(SkDynamicMemoryWStream *s=nullptr)
void updateDrawingState(const Entry &state)
SkDynamicMemoryWStream * fContentStream
static constexpr int kMaxStackDepth
void updateClip(const SkClipStack *clipStack, const SkIRect &bounds)