skia2/include/private/GrCCPerOpListPaths.h
Robert Phillips 774168efac Allow CCPR in DDL mode (take 2)
A lot of the changes to get this compiling on the
win_chromium_compile_dbg_ng bot (i.e., moving a lot of header files to
private) should be undone if that bot is ever "fixed".

Bug: skia:7988
Change-Id: I704ff793d80b18e7312048538874498824803580
Reviewed-on: https://skia-review.googlesource.com/130920
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2018-05-31 17:27:43 +00:00

35 lines
879 B
C++

/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrCCPerOpListPaths_DEFINED
#define GrCCPerOpListPaths_DEFINED
#include "SkArenaAlloc.h"
#include "SkRefCnt.h"
#include "SkTInternalLList.h"
#include "GrCCClipPath.h"
#include <map>
class GrCCDrawPathsOp;
class GrCCPerFlushResources;
/**
* Tracks all the CCPR paths in a given opList that will be drawn when it flushes.
*/
// DDL TODO: given the usage pattern in DDL mode, this could probably be non-atomic refcounting.
class GrCCPerOpListPaths : public SkRefCnt {
public:
~GrCCPerOpListPaths();
SkTInternalLList<GrCCDrawPathsOp> fDrawOps;
std::map<uint32_t, GrCCClipPath> fClipPaths;
SkSTArenaAlloc<10 * 1024> fAllocator{10 * 1024 * 2};
sk_sp<const GrCCPerFlushResources> fFlushResources;
};
#endif