Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Unified Diff: src/gpu/batches/GrClearStencilClipBatch.h

Issue 2215323003: Start using RenderTargetProxy (omnibus) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/batches/GrClearBatch.h ('k') | src/gpu/batches/GrCopySurfaceBatch.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/batches/GrClearStencilClipBatch.h
diff --git a/src/gpu/batches/GrClearStencilClipBatch.h b/src/gpu/batches/GrClearStencilClipBatch.h
index 42d7c444db12cce94707596a8185cfd3d2ca9432..7cdc94976cd5a81d0137f19ba16c98e7422e7dab 100644
--- a/src/gpu/batches/GrClearStencilClipBatch.h
+++ b/src/gpu/batches/GrClearStencilClipBatch.h
@@ -19,20 +19,20 @@ class GrClearStencilClipBatch final : public GrBatch {
public:
DEFINE_BATCH_CLASS_ID
- GrClearStencilClipBatch(const GrFixedClip& clip, bool insideStencilMask, GrRenderTarget* rt)
+ GrClearStencilClipBatch(const GrFixedClip& clip, bool insideStencilMask, GrRenderTargetProxy* rtp)
: INHERITED(ClassID())
, fClip(clip)
, fInsideStencilMask(insideStencilMask)
- , fRenderTarget(rt) {
+ , fRenderTargetProxy(rtp) {
const SkRect& bounds = fClip.scissorEnabled() ? SkRect::Make(fClip.scissorRect())
- : SkRect::MakeIWH(rt->width(), rt->height());
+ : SkRect::MakeIWH(rtp->width(), rtp->height());
this->setBounds(bounds, HasAABloat::kNo, IsZeroArea::kNo);
}
const char* name() const override { return "ClearStencilClip"; }
- uint32_t renderTargetUniqueID() const override { return fRenderTarget.get()->uniqueID(); }
- GrRenderTarget* renderTarget() const override { return fRenderTarget.get(); }
+ uint32_t renderTargetUniqueID() const override { return fRenderTargetProxy.get()->uniqueID(); }
+ GrRenderTargetProxy* rtp() const override { return fRenderTargetProxy.get(); }
SkString dumpInfo() const override {
SkString string("Scissor [");
@@ -40,7 +40,7 @@ public:
const SkIRect& r = fClip.scissorRect();
string.appendf("L: %d, T: %d, R: %d, B: %d", r.fLeft, r.fTop, r.fRight, r.fBottom);
}
- string.appendf("], IC: %d, RT: %d", fInsideStencilMask, fRenderTarget.get()->uniqueID());
+ string.appendf("], IC: %d, RT: %d", fInsideStencilMask, fRenderTargetProxy.get()->uniqueID());
string.append(INHERITED::dumpInfo());
return string;
}
@@ -56,7 +56,7 @@ private:
const GrFixedClip fClip;
const bool fInsideStencilMask;
- GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget;
+ GrPendingIOResource<GrRenderTargetProxy, kWrite_GrIOType> fRenderTargetProxy;
typedef GrBatch INHERITED;
};
« no previous file with comments | « src/gpu/batches/GrClearBatch.h ('k') | src/gpu/batches/GrCopySurfaceBatch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698