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

Unified Diff: src/gpu/batches/GrDiscardBatch.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/GrCopySurfaceBatch.h ('k') | src/gpu/batches/GrDrawBatch.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/batches/GrDiscardBatch.h
diff --git a/src/gpu/batches/GrDiscardBatch.h b/src/gpu/batches/GrDiscardBatch.h
index 8a3be0e5f381914f2b62fe1fbc62b3343030f94d..bde71b824678a4ebc1450d2ea82310d360c0c136 100644
--- a/src/gpu/batches/GrDiscardBatch.h
+++ b/src/gpu/batches/GrDiscardBatch.h
@@ -17,21 +17,21 @@ class GrDiscardBatch final : public GrBatch {
public:
DEFINE_BATCH_CLASS_ID
- GrDiscardBatch(GrRenderTarget* rt)
+ GrDiscardBatch(GrRenderTargetProxy* rtp)
: INHERITED(ClassID())
- , fRenderTarget(rt) {
- this->setBounds(SkRect::MakeIWH(rt->width(), rt->height()), HasAABloat::kNo,
+ , fRenderTargetProxy(rtp) {
+ this->setBounds(SkRect::MakeIWH(rtp->width(), rtp->height()), HasAABloat::kNo,
IsZeroArea::kNo);
}
const char* name() const override { return "Discard"; }
- 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;
- string.printf("RT: %d", fRenderTarget.get()->uniqueID());
+ string.printf("RT: %d", fRenderTargetProxy.get()->uniqueID());
string.append(INHERITED::dumpInfo());
return string;
}
@@ -47,7 +47,7 @@ private:
state->commandBuffer()->discard();
}
- GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget;
+ GrPendingIOResource<GrRenderTargetProxy, kWrite_GrIOType> fRenderTargetProxy;
typedef GrBatch INHERITED;
};
« no previous file with comments | « src/gpu/batches/GrCopySurfaceBatch.h ('k') | src/gpu/batches/GrDrawBatch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698