Flutter Engine
The Flutter Engine
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
SkSGPlane.cpp
Go to the documentation of this file.
1/*
2 * Copyright 2018 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
9
11#include "include/core/SkPath.h"
15
16class SkMatrix;
17struct SkPoint;
18
19namespace sksg {
20Plane::Plane() = default;
21
22void Plane::onClip(SkCanvas*, bool) const {}
23
24void Plane::onDraw(SkCanvas* canvas, const SkPaint& paint) const {
25 canvas->drawPaint(paint);
26}
27
28bool Plane::onContains(const SkPoint&) const { return true; }
29
31 SkASSERT(this->hasInval());
32
34}
35
39
40 return path;
41}
42
43} // namespace sksg
#define SkASSERT(cond)
Definition: SkAssert.h:116
#define SK_ScalarMin
Definition: SkScalar.h:25
#define SK_ScalarMax
Definition: SkScalar.h:24
void drawPaint(const SkPaint &paint)
Definition: SkCanvas.cpp:1668
Definition: SkPath.h:59
bool hasInval() const
Definition: SkSGNode.h:60
bool onContains(const SkPoint &) const override
Definition: SkSGPlane.cpp:28
void onDraw(SkCanvas *, const SkPaint &) const override
Definition: SkSGPlane.cpp:24
SkPath onAsPath() const override
Definition: SkSGPlane.cpp:36
SkRect onRevalidate(InvalidationController *, const SkMatrix &) override
Definition: SkSGPlane.cpp:30
void onClip(SkCanvas *, bool antiAlias) const override
Definition: SkSGPlane.cpp:22
const Paint & paint
Definition: color_source.cc:38
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition: switches.h:57
Definition: Skottie.h:32
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)
Definition: SkRect.h:646