aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar borenet@google.com <borenet@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-11 18:35:35 +0000
committerGravatar borenet@google.com <borenet@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-11 18:35:35 +0000
commitfb3dd3a6f57204e9c455cfc65d65dc1a2a1d571c (patch)
treeffe9f023f5e18a8eb16907cc543ef22c6361b817 /src
parent91359395814d4b6a338601630c21518581a824a2 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/gpu/android/SkNativeGLContext_android.cpp6
1 files changed, 4 insertions, 2 deletions
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;
}