aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/GrContextFactoryTest.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-05-11 06:33:06 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-11 06:33:06 -0700
commit8b7451aaf6b1c71e9d343a4df107893db277b6aa (patch)
treeb1416c3e9a154a74ff004135d41b5eefd68c0ed9 /tests/GrContextFactoryTest.cpp
parent70142347f7b4ef49745e828d93026fc153a72845 (diff)
Turn ContextInfos returned by GrContextFactory into structs.
Diffstat (limited to 'tests/GrContextFactoryTest.cpp')
-rw-r--r--tests/GrContextFactoryTest.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/GrContextFactoryTest.cpp b/tests/GrContextFactoryTest.cpp
index fe4f1ef82f..e710ca4867 100644
--- a/tests/GrContextFactoryTest.cpp
+++ b/tests/GrContextFactoryTest.cpp
@@ -75,26 +75,26 @@ DEF_GPUTEST(GrContextFactory_abandon, reporter, /*factory*/) {
for (int i = 0; i < GrContextFactory::kContextTypeCnt; ++i) {
GrContextFactory::ContextType ctxType = (GrContextFactory::ContextType) i;
ContextInfo info1 = testFactory.getContextInfo(ctxType);
- if (!info1.fGrContext) {
+ if (!info1.grContext()) {
continue;
}
if (GrContextFactory::ContextTypeBackend(ctxType) == kOpenGL_GrBackend) {
- REPORTER_ASSERT(reporter, info1.fGLContext);
+ REPORTER_ASSERT(reporter, info1.glContext());
}
// Ref for comparison. The API does not explicitly say that this stays alive.
- info1.fGrContext->ref();
+ info1.grContext()->ref();
testFactory.abandonContexts();
// Test that we get different context after abandon.
ContextInfo info2 = testFactory.getContextInfo(ctxType);
- REPORTER_ASSERT(reporter, info2.fGrContext);
+ REPORTER_ASSERT(reporter, info2.grContext());
if (GrContextFactory::ContextTypeBackend(ctxType) == kOpenGL_GrBackend) {
- REPORTER_ASSERT(reporter, info2.fGLContext);
+ REPORTER_ASSERT(reporter, info2.glContext());
}
- REPORTER_ASSERT(reporter, info1.fGrContext != info2.fGrContext);
- // fGLContext should also change, but it also could get the same address.
+ REPORTER_ASSERT(reporter, info1.grContext() != info2.grContext());
+ // The GL context should also change, but it also could get the same address.
- info1.fGrContext->unref();
+ info1.grContext()->unref();
}
}