diff options
author | Brian Salomon <bsalomon@google.com> | 2016-11-11 15:35:34 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-11-14 14:34:11 +0000 |
commit | 238b820369c4b556c2e7c8277855e6950de3d9eb (patch) | |
tree | 765b061086aa14b09202d4bc3d27680c58b69d74 /tests | |
parent | d7148f673a426c49d6d830b9d0bd5ee6077f1b9d (diff) |
Always build the ANGLE test code. Always build ANGLE on windows and linux.
Make ANGLE test code independent of having ANGLE lib. Make ANGLE test code not include EGL headers.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4040
DOCS_PREVIEW= https://skia.org/?cl=4040
Change-Id: I7b857e9785246743f53fb969647b1162ce7419ab
Reviewed-on: https://skia-review.googlesource.com/4040
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ImageTest.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/ImageTest.cpp b/tests/ImageTest.cpp index 0acb428d7a..2752c9898f 100644 --- a/tests/ImageTest.cpp +++ b/tests/ImageTest.cpp @@ -452,7 +452,16 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(c, reporter, ctxInfo) { } } -DEF_GPUTEST_FOR_RENDERING_CONTEXTS(SkImage_newTextureImage, reporter, contextInfo) { +static bool is_rendering_and_not_angle_gl(sk_gpu_test::GrContextFactory::ContextType type) { + if (type == sk_gpu_test::GrContextFactory::kANGLE_GL_ES3_ContextType || + type == sk_gpu_test::GrContextFactory::kANGLE_GL_ES2_ContextType) { + return false; + } + return sk_gpu_test::GrContextFactory::IsRenderingContext(type); +} + +DEF_GPUTEST_FOR_CONTEXTS(SkImage_newTextureImage, is_rendering_and_not_angle_gl, reporter, + contextInfo) { GrContext* context = contextInfo.grContext(); sk_gpu_test::TestContext* testContext = contextInfo.testContext(); @@ -884,7 +893,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(NewTextureFromPixmap, reporter, ctxInfo) { } } -DEF_GPUTEST_FOR_RENDERING_CONTEXTS(DeferredTextureImage, reporter, ctxInfo) { +DEF_GPUTEST_FOR_CONTEXTS(DeferredTextureImage, is_rendering_and_not_angle_gl, reporter, ctxInfo) { GrContext* context = ctxInfo.grContext(); sk_gpu_test::TestContext* testContext = ctxInfo.testContext(); sk_sp<GrContextThreadSafeProxy> proxy = context->threadSafeProxy(); |