blob: 0640af63f073d7f28eece58c16f4063262e094e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrPLSGeometryProcessor_DEFINED
#define GrPLSGeometryProcessor_DEFINED
#include "GrGeometryProcessor.h"
/**
* A minor extension to GrGeometryProcessor that adds bounds tracking for pixel local storage
* purposes.
*/
class GrPLSGeometryProcessor : public GrGeometryProcessor {
public:
GrPixelLocalStorageState getPixelLocalStorageState() const override {
return GrPixelLocalStorageState::kDraw_GrPixelLocalStorageState;
}
const SkRect& getBounds() const {
return fBounds;
}
void setBounds(SkRect& bounds) {
fBounds = bounds;
}
private:
SkRect fBounds;
};
#endif
|