Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
shader.h
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#ifndef FLUTTER_LIB_UI_PAINTING_SHADER_H_
6#define FLUTTER_LIB_UI_PAINTING_SHADER_H_
7
8#include "flutter/display_list/effects/dl_color_source.h"
9#include "flutter/lib/ui/ui_dart_state.h"
10
11namespace flutter {
12
13class Shader : public RefCountedDartWrappable<Shader> {
14 DEFINE_WRAPPERTYPEINFO();
16
17 public:
18 ~Shader() override;
19
20 virtual std::shared_ptr<DlColorSource> shader(DlImageSampling) = 0;
21
22 protected:
23 Shader() {}
24};
25
26} // namespace flutter
27
28#endif // FLUTTER_LIB_UI_PAINTING_SHADER_H_
virtual std::shared_ptr< DlColorSource > shader(DlImageSampling)=0
~Shader() override
#define FML_FRIEND_MAKE_REF_COUNTED(T)