Lines Matching defs:GrCachedLayer
80 struct GrCachedLayer { struct
83 struct Key {
146 static const Key& GetKey(const GrCachedLayer& layer) { return layer.fKey; } in GetKey() argument
149 // GrCachedLayer proper argument
150 GrCachedLayer(uint32_t pictureID, in GrCachedLayer() argument
183 ~GrCachedLayer() { in ~GrCachedLayer() argument
192 // TODO: remove these when GrCachedLayer & ReplacementInfo fuse argument
193 const int* key() const { return fKey.key(); } in key()
194 int keySize() const { return fKey.keySize(); } in keySize()
196 int start() const { return fStart; } in start()
198 const SkIRect& srcIR() const { return fSrcIR; } in srcIR()
199 const SkIRect& dstIR() const { return fDstIR; } in dstIR()
200 int stop() const { return fStop; } in stop()
201 void setTexture(GrTexture* texture, const SkIRect& rect, bool atlased) { in setTexture()
215 GrTexture* texture() { return fTexture; } in texture()
216 const SkPaint* paint() const { return fPaint; } in paint()
217 const SkImageFilter* filter() const { return fFilter; } in filter()
218 const SkIRect& rect() const { return fRect; } in rect()
220 void setOffset(const SkIPoint& offset) { fOffset = offset; } in setOffset()
221 const SkIPoint& offset() const { return fOffset; } in offset()
223 void setPlot(GrLayerAtlas::Plot* plot) { in setPlot()
227 GrLayerAtlas::Plot* plot() { return fPlot; } in plot()
229 bool isAtlased() const { SkASSERT(fAtlased == SkToBool(fPlot)); return fAtlased; } in isAtlased()
231 void setLocked(bool locked) { fLocked = locked; } in setLocked()
232 bool locked() const { return fLocked; } in locked()
241 const int fStart;
243 const int fStop;
247 const SkIRect fSrcIR;
249 const SkIRect fDstIR;
251 SkIPoint fOffset;
255 SkPaint* fPaint;
259 const SkImageFilter* fFilter;
263 GrTexture* fTexture;
267 bool fAtlased;
272 SkIRect fRect;
276 GrLayerAtlas::Plot* fPlot;
281 int fUses;
289 bool fLocked;
314 GrCachedLayer* findLayer(uint32_t pictureID, const SkMatrix& ctm, argument