Fix up names from RenderTargetContext to SurfaceDrawContext.
RenderTargetContext was renamed several months ago; this CL just fixes
up a few related names which hadn't yet updated yet.
Change-Id: I59a6ea92fc5d309a9b45a83e3aca6e49cb8d662e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/415745
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/ops/GrTextureOp.cpp b/src/gpu/ops/GrTextureOp.cpp
index afa0017..749d601 100644
--- a/src/gpu/ops/GrTextureOp.cpp
+++ b/src/gpu/ops/GrTextureOp.cpp
@@ -1178,7 +1178,7 @@
// A helper class that assists in breaking up bulk API quad draws into manageable chunks.
class GrTextureOp::BatchSizeLimiter {
public:
- BatchSizeLimiter(GrSurfaceDrawContext* rtc,
+ BatchSizeLimiter(GrSurfaceDrawContext* sdc,
const GrClip* clip,
GrRecordingContext* context,
int numEntries,
@@ -1188,7 +1188,7 @@
SkCanvas::SrcRectConstraint constraint,
const SkMatrix& viewMatrix,
sk_sp<GrColorSpaceXform> textureColorSpaceXform)
- : fRTC(rtc)
+ : fSDC(sdc)
, fClip(clip)
, fContext(context)
, fFilter(filter)
@@ -1214,7 +1214,7 @@
fConstraint,
fViewMatrix,
fTextureColorSpaceXform);
- fRTC->addDrawOp(fClip, std::move(op));
+ fSDC->addDrawOp(fClip, std::move(op));
fNumLeft -= clumpSize;
fNumClumped += clumpSize;
@@ -1224,7 +1224,7 @@
int baseIndex() const { return fNumClumped; }
private:
- GrSurfaceDrawContext* fRTC;
+ GrSurfaceDrawContext* fSDC;
const GrClip* fClip;
GrRecordingContext* fContext;
GrSamplerState::Filter fFilter;