Make GrCaps and GrShaderCaps private.
Moves getCaps() from GrContext to GrContextPriv and removes unused refCaps().
Change-Id: Ic6a8951b656c0d1b2773eae73bff8e88af819866
Reviewed-on: https://skia-review.googlesource.com/127389
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
diff --git a/tests/TransferPixelsTest.cpp b/tests/TransferPixelsTest.cpp
index e17dfac..5ff2386 100755
--- a/tests/TransferPixelsTest.cpp
+++ b/tests/TransferPixelsTest.cpp
@@ -64,7 +64,7 @@
void basic_transfer_test(skiatest::Reporter* reporter, GrContext* context, GrColorType colorType,
GrSurfaceOrigin origin, bool renderTarget) {
- if (GrCaps::kNone_MapFlags == context->caps()->mapBufferFlags()) {
+ if (GrCaps::kNone_MapFlags == context->contextPriv().caps()->mapBufferFlags()) {
return;
}
@@ -111,8 +111,8 @@
continue;
}
- if (!context->caps()->isConfigTexturable(desc.fConfig) ||
- (renderTarget && !context->caps()->isConfigRenderable(desc.fConfig))) {
+ if (!context->contextPriv().caps()->isConfigTexturable(desc.fConfig) ||
+ (renderTarget && !context->contextPriv().caps()->isConfigRenderable(desc.fConfig))) {
continue;
}