Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
color_filter_layer.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_FLOW_LAYERS_COLOR_FILTER_LAYER_H_
6#define FLUTTER_FLOW_LAYERS_COLOR_FILTER_LAYER_H_
7
8#include "flutter/display_list/effects/dl_color_filter.h"
9#include "flutter/flow/layers/cacheable_layer.h"
10#include "flutter/flow/layers/layer.h"
11
12namespace flutter {
13
15 public:
16 explicit ColorFilterLayer(std::shared_ptr<const DlColorFilter> filter);
17
18 void Diff(DiffContext* context, const Layer* old_layer) override;
19
20 void Preroll(PrerollContext* context) override;
21
22 void Paint(PaintContext& context) const override;
23
24 private:
25 std::shared_ptr<const DlColorFilter> filter_;
26
28};
29
30} // namespace flutter
31
32#endif // FLUTTER_FLOW_LAYERS_COLOR_FILTER_LAYER_H_
void Preroll(PrerollContext *context) override
void Diff(DiffContext *context, const Layer *old_layer) override
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27