diff options
author | bsalomon <bsalomon@google.com> | 2016-03-31 10:07:23 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-31 10:07:24 -0700 |
commit | 4c7f0a16312c374eba4e8d5d46435ce9eb0b9971 (patch) | |
tree | 8b5e597a2577667fba4aa1e9d4eb8ede2c545ffb /tests | |
parent | 51a315eff9b86bd60e7884240c4efc199129d37a (diff) |
rename sk_gpu_test::GLContext to sk_gpu_test::GLTestContext
rename subclasses
Fix up the EGL native GLTestContext
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1849463002
TBR=jvanverth@google.com
Review URL: https://codereview.chromium.org/1849463002
Diffstat (limited to 'tests')
-rw-r--r-- | tests/EGLImageTest.cpp | 8 | ||||
-rw-r--r-- | tests/RectangleTextureTest.cpp | 2 | ||||
-rw-r--r-- | tests/Test.h | 4 | ||||
-rw-r--r-- | tests/TestTest.cpp | 4 | ||||
-rw-r--r-- | tests/TextureStorageAllocator.cpp | 2 |
5 files changed, 10 insertions, 10 deletions
diff --git a/tests/EGLImageTest.cpp b/tests/EGLImageTest.cpp index 7f0d7ea376..47dad8164e 100644 --- a/tests/EGLImageTest.cpp +++ b/tests/EGLImageTest.cpp @@ -11,11 +11,11 @@ #include "GrContextFactory.h" #include "gl/GrGLGpu.h" #include "gl/GrGLUtil.h" -#include "gl/GLContext.h" +#include "gl/GLTestContext.h" -using sk_gpu_test::GLContext; +using sk_gpu_test::GLTestContext; -static void cleanup(GLContext* glctx0, GrGLuint texID0, GLContext* glctx1, GrContext* grctx1, +static void cleanup(GLTestContext* glctx0, GrGLuint texID0, GLTestContext* glctx1, GrContext* grctx1, const GrGLTextureInfo* grbackendtex1, GrEGLImage image1) { if (glctx1) { glctx1->makeCurrent(); @@ -93,7 +93,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(EGLImageTest, reporter, context0, glCtx0) { return; } - SkAutoTDelete<GLContext> glCtx1 = glCtx0->createNew(); + SkAutoTDelete<GLTestContext> glCtx1 = glCtx0->createNew(); if (!glCtx1) { return; } diff --git a/tests/RectangleTextureTest.cpp b/tests/RectangleTextureTest.cpp index fc9e65e12d..782a3b57b3 100644 --- a/tests/RectangleTextureTest.cpp +++ b/tests/RectangleTextureTest.cpp @@ -11,7 +11,7 @@ #include "GrDrawContext.h" #include "gl/GrGLGpu.h" #include "gl/GrGLUtil.h" -#include "gl/GLContext.h" +#include "gl/GLTestContext.h" static void test_read_pixels(skiatest::Reporter* reporter, GrContext* context, GrTexture* rectangleTexture, uint32_t expectedPixelValues[]) { diff --git a/tests/Test.h b/tests/Test.h index 119976f3ee..7660c44d0d 100644 --- a/tests/Test.h +++ b/tests/Test.h @@ -13,7 +13,7 @@ namespace sk_gpu_test { class GrContextFactory; -class GLContext; +class GLTestContext; } // namespace sk_gpu_test class GrContext; @@ -146,7 +146,7 @@ private: #define GPUTEST_SELECT(a1, a2, N, ...) N #define GPUTEST_CONTEXT_ARGS1(a1) GrContext* a1 -#define GPUTEST_CONTEXT_ARGS2(a1, a2) GrContext* a1, sk_gpu_test::GLContext* a2 +#define GPUTEST_CONTEXT_ARGS2(a1, a2) GrContext* a1, sk_gpu_test::GLTestContext* a2 #define GPUTEST_CONTEXT_ARGS(...) \ GPUTEST_APPLY(GPUTEST_SELECT(__VA_ARGS__, GPUTEST_CONTEXT_ARGS2, GPUTEST_CONTEXT_ARGS1), \ __VA_ARGS__) diff --git a/tests/TestTest.cpp b/tests/TestTest.cpp index 05ab9ff697..d72e02d5c1 100644 --- a/tests/TestTest.cpp +++ b/tests/TestTest.cpp @@ -9,7 +9,7 @@ #if SK_SUPPORT_GPU #include "GrContext.h" -#include "gl/GLContext.h" +#include "gl/GLTestContext.h" #endif @@ -64,7 +64,7 @@ DEF_GPUTEST_FOR_NULL_CONTEXT(TestGpuNullContext, reporter, context) { #endif // This is an example of a GPU test that tests a property that should work for all GPU contexts. -// It uses the additional GLContext* glContext to implement the test. +// It uses the additional GLTestContext* glContext to implement the test. #if SK_SUPPORT_GPU DEF_GPUTEST_FOR_ALL_CONTEXTS(TestGpuGrContextAndGLContext, reporter, context, glContext) { REPORTER_ASSERT(reporter, reporter); diff --git a/tests/TextureStorageAllocator.cpp b/tests/TextureStorageAllocator.cpp index dd08354136..fbd00d32f6 100644 --- a/tests/TextureStorageAllocator.cpp +++ b/tests/TextureStorageAllocator.cpp @@ -8,7 +8,7 @@ #include "Test.h" #if SK_SUPPORT_GPU #include "gl/GrGLGpu.h" -#include "gl/GLContext.h" +#include "gl/GLTestContext.h" #include "GrContext.h" #include "SkSurface_Gpu.h" #include "../include/gpu/GrTypes.h" |