[sksg] Clean up public headers
Change-Id: I0a6627f9b8d47e51c82c89ff1df75c3add8e8035 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/267919 Reviewed-by: Brian Osman <brianosman@google.com> Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Florin Malita <fmalita@chromium.org>
This commit is contained in:
parent
22d08b536b
commit
b82c0ece7e
@ -10,7 +10,8 @@
|
||||
|
||||
#include "include/core/SkMatrix.h"
|
||||
#include "include/core/SkTypes.h"
|
||||
#include "include/private/SkTDArray.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
struct SkRect;
|
||||
|
||||
@ -29,15 +30,16 @@ public:
|
||||
|
||||
void inval(const SkRect&, const SkMatrix& ctm = SkMatrix::I());
|
||||
|
||||
const SkRect& bounds() const { return fBounds; }
|
||||
const SkRect* begin() const { return fRects.begin(); }
|
||||
const SkRect* end() const { return fRects.end(); }
|
||||
const SkRect& bounds() const { return fBounds; }
|
||||
|
||||
auto begin() const { return fRects.cbegin(); }
|
||||
auto end() const { return fRects.cend(); }
|
||||
|
||||
void reset();
|
||||
|
||||
private:
|
||||
SkTDArray<SkRect> fRects;
|
||||
SkRect fBounds;
|
||||
std::vector<SkRect> fRects;
|
||||
SkRect fBounds;
|
||||
};
|
||||
|
||||
} // namespace sksg
|
||||
|
@ -10,8 +10,8 @@
|
||||
|
||||
#include "modules/sksg/include/SkSGEffectNode.h"
|
||||
|
||||
#include "include/core/SkMatrix.h"
|
||||
#include "include/private/SkM44.h"
|
||||
class SkM44;
|
||||
class SkMatrix;
|
||||
|
||||
namespace sksg {
|
||||
|
||||
|
@ -30,7 +30,7 @@ void InvalidationController::inval(const SkRect& r, const SkMatrix& ctm) {
|
||||
}
|
||||
|
||||
void InvalidationController::reset() {
|
||||
fRects.reset();
|
||||
fRects.clear();
|
||||
fBounds.setEmpty();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user