Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
dl_canvas.cc
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "flutter/display_list/dl_canvas.h"
6
9
10namespace flutter {
11
13 float elevation,
14 SkScalar dpr,
15 const SkMatrix& ctm) {
16 SkRect shadow_bounds(path.getBounds());
18 ctm, path, SkPoint3::Make(0, 0, dpr * elevation),
21 return shadow_bounds;
22}
23
24} // namespace flutter
@ kDirectionalLight_ShadowFlag
static bool GetLocalBounds(const SkMatrix &ctm, const SkPath &path, const SkPoint3 &zPlaneParams, const SkPoint3 &lightPos, SkScalar lightRadius, uint32_t flags, SkRect *bounds)
static constexpr SkScalar kShadowLightRadius
Definition dl_canvas.h:225
static constexpr SkScalar kShadowLightHeight
Definition dl_canvas.h:224
static SkRect ComputeShadowBounds(const SkPath &path, float elevation, SkScalar dpr, const SkMatrix &ctm)
Definition dl_canvas.cc:12
float SkScalar
Definition extension.cpp:12
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
static SkPoint3 Make(SkScalar x, SkScalar y, SkScalar z)
Definition SkPoint3.h:18