Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / skia / src / gpu / graphite / Task.h
1 /*
2  * Copyright 2021 Google LLC
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
8 #ifndef skgpu_graphite_Task_DEFINED
9 #define skgpu_graphite_Task_DEFINED
10
11 #include "include/core/SkRefCnt.h"
12
13 namespace skgpu::graphite {
14
15 class CommandBuffer;
16 class ResourceProvider;
17
18 class Task : public SkRefCnt {
19 public:
20     ~Task() override;
21
22     // Returns true on success; false on failure.
23     virtual bool addCommands(ResourceProvider*, CommandBuffer*) = 0;
24
25 protected:
26     Task();
27
28 private:
29 };
30
31 } // namespace skgpu::graphite
32
33 #endif // skgpu_graphite_Task_DEFINED