From fb3dd3a6f57204e9c455cfc65d65dc1a2a1d571c Mon Sep 17 00:00:00 2001 From: "borenet@google.com" Date: Tue, 11 Sep 2012 18:35:35 +0000 Subject: Temporarily add logging to GrContextFactory and SkNativeGLContext_android Over-the-shoulder review from robertphillips@ and bsalomon@ Will revert soon. Review URL: https://codereview.appspot.com/6496110 git-svn-id: http://skia.googlecode.com/svn/trunk@5491 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/android/SkNativeGLContext_android.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gpu/android/SkNativeGLContext_android.cpp b/src/gpu/android/SkNativeGLContext_android.cpp index f21eed8666..386b8675c7 100644 --- a/src/gpu/android/SkNativeGLContext_android.cpp +++ b/src/gpu/android/SkNativeGLContext_android.cpp @@ -57,7 +57,7 @@ const GrGLInterface* SkNativeGLContext::createGLContext() { EGLint majorVersion; EGLint minorVersion; eglInitialize(fDisplay, &majorVersion, &minorVersion); - + printf ("SkNativeGLContext::createGLContext(): EGL v%i.%i\n", majorVersion, minorVersion); EGLint numConfigs; static const EGLint configAttribs[] = { EGL_SURFACE_TYPE, EGL_PBUFFER_BIT, @@ -72,6 +72,8 @@ const GrGLInterface* SkNativeGLContext::createGLContext() { EGLConfig surfaceConfig; eglChooseConfig(fDisplay, configAttribs, &surfaceConfig, 1, &numConfigs); + printf("SkNativeGLContext::createGLContext(): numConfigs=%i", numConfigs); + static const EGLint contextAttribs[] = { EGL_CONTEXT_CLIENT_VERSION, 2, EGL_NONE @@ -90,7 +92,7 @@ const GrGLInterface* SkNativeGLContext::createGLContext() { const GrGLInterface* interface = GrGLCreateNativeInterface(); if (!interface) { - SkDebugf("Failed to create gl interface"); + printf("Failed to create gl interface\n"); this->destroyGLContext(); return NULL; } -- cgit v1.2.3