GrRenderTargetContext->GrSurfaceDrawContext
Just the class/files. variable names and additional comments to follow.
Change-Id: Ic03d07fd5009eaf3d706c2536486a117328963fc
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/342617
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
diff --git a/tests/BulkRectTest.cpp b/tests/BulkRectTest.cpp
index c0a4d99..8e37aa7 100644
--- a/tests/BulkRectTest.cpp
+++ b/tests/BulkRectTest.cpp
@@ -9,13 +9,13 @@
#include "src/core/SkBlendModePriv.h"
#include "src/gpu/GrDirectContextPriv.h"
#include "src/gpu/GrProxyProvider.h"
-#include "src/gpu/GrRenderTargetContext.h"
+#include "src/gpu/GrSurfaceDrawContext.h"
#include "src/gpu/ops/GrFillRectOp.h"
#include "src/gpu/ops/GrTextureOp.h"
#include "tests/Test.h"
-static std::unique_ptr<GrRenderTargetContext> new_RTC(GrRecordingContext* rContext) {
- return GrRenderTargetContext::Make(
+static std::unique_ptr<GrSurfaceDrawContext> new_RTC(GrRecordingContext* rContext) {
+ return GrSurfaceDrawContext::Make(
rContext, GrColorType::kRGBA_8888, nullptr, SkBackingFit::kExact, {128, 128});
}
@@ -53,9 +53,9 @@
return;
}
- std::unique_ptr<GrRenderTargetContext> rtc = new_RTC(dContext);
+ std::unique_ptr<GrSurfaceDrawContext> rtc = new_RTC(dContext);
- auto quads = new GrRenderTargetContext::QuadSetEntry[requestedTotNumQuads];
+ auto quads = new GrSurfaceDrawContext::QuadSetEntry[requestedTotNumQuads];
for (int i = 0; i < requestedTotNumQuads; ++i) {
quads[i].fRect = SkRect::MakeWH(100.5f, 100.5f); // prevent the int non-AA optimization
@@ -97,7 +97,7 @@
bool allUniqueProxies,
int requestedTotNumQuads, int expectedNumOps) {
- std::unique_ptr<GrRenderTargetContext> rtc = new_RTC(dContext);
+ std::unique_ptr<GrSurfaceDrawContext> rtc = new_RTC(dContext);
GrSurfaceProxyView proxyViewA, proxyViewB;
@@ -112,7 +112,7 @@
GrSwizzle::RGBA());
}
- auto set = new GrRenderTargetContext::TextureSetEntry[requestedTotNumQuads];
+ auto set = new GrSurfaceDrawContext::TextureSetEntry[requestedTotNumQuads];
for (int i = 0; i < requestedTotNumQuads; ++i) {
if (!allUniqueProxies) {