• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
8 #ifndef GrCCPerOpsTaskPaths_DEFINED
9 #define GrCCPerOpsTaskPaths_DEFINED
10 
11 #include "include/core/SkRefCnt.h"
12 #include "src/core/SkArenaAlloc.h"
13 #include "src/core/SkTInternalLList.h"
14 #include "src/gpu/ccpr/GrCCClipPath.h"
15 
16 #include <map>
17 
18 class GrCCPerFlushResources;
19 
20 /**
21  * Tracks all the CCPR paths in a given opsTask that will be drawn when it flushes.
22  */
23 // DDL TODO: given the usage pattern in DDL mode, this could probably be non-atomic refcounting.
24 struct GrCCPerOpsTaskPaths : public SkRefCnt {
25     std::map<uint32_t, sk_sp<GrCCClipPath>> fClipPaths;
26 };
27 
28 #endif
29