aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-06-08 18:22:53 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-09 00:39:00 +0000
commitfee2b4ed0ff3776064c327c73f4f66b20727a1c1 (patch)
treee99b3d1042604e28ffafba58cbcc1c9548e2b779 /tests
parent21157ce0496c4dc7d4d280c3157b11279367b73f (diff)
Create a new HDC for each ANGLE context
Bug: skia:6711 Change-Id: I9c4720a8dbad4c6b18efe73e0e61afbdc19627bc Reviewed-on: https://skia-review.googlesource.com/19090 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/EGLImageTest.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/EGLImageTest.cpp b/tests/EGLImageTest.cpp
index ae66db5c19..5ddccdf47a 100644
--- a/tests/EGLImageTest.cpp
+++ b/tests/EGLImageTest.cpp
@@ -128,6 +128,11 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(EGLImageTest, reporter, ctxInfo) {
glCtx0->makeCurrent();
externalTexture.fTarget = GR_GL_TEXTURE_EXTERNAL;
externalTexture.fID = glCtx0->eglImageToExternalTexture(image);
+ if (0 == externalTexture.fID) {
+ ERRORF(reporter, "Error converting EGL Image back to texture");
+ cleanup(glCtx0, externalTexture.fID, glCtx1.get(), context1, backendTexture1, image);
+ return;
+ }
// Wrap this texture ID in a GrTexture
GrBackendTexture backendTex(kSize, kSize, kRGBA_8888_GrPixelConfig, externalTexture);