diff options
author | Mathias Agopian <mathias@google.com> | 2011-01-24 19:49:14 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-01-24 19:49:14 -0800 |
commit | 977553e4d493986819858e0f0032185cada06869 (patch) | |
tree | 38b1ea31fce01cdf7c998bc9bfd606a705d55db0 /services | |
parent | 1ab0ac3f17e52d6cf4f23598f76a8fa8af2310d8 (diff) | |
parent | 34edd5b2678332e23bb78c59d4720c5b7b0e842e (diff) | |
download | frameworks_base-977553e4d493986819858e0f0032185cada06869.zip frameworks_base-977553e4d493986819858e0f0032185cada06869.tar.gz frameworks_base-977553e4d493986819858e0f0032185cada06869.tar.bz2 |
am 34edd5b2: Merge "tone down the log spew regarding taking screenshots." into honeycomb
* commit '34edd5b2678332e23bb78c59d4720c5b7b0e842e':
tone down the log spew regarding taking screenshots.
Diffstat (limited to 'services')
-rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 694af70..291ebc5 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -2170,8 +2170,6 @@ status_t SurfaceFlinger::captureScreenImplLocked(DisplayID dpy, GLenum status = glCheckFramebufferStatusOES(GL_FRAMEBUFFER_OES); - LOGD("screenshot: FBO created, status=0x%x", status); - if (status == GL_FRAMEBUFFER_COMPLETE_OES) { // invert everything, b/c glReadPixel() below will invert the FB @@ -2187,8 +2185,6 @@ status_t SurfaceFlinger::captureScreenImplLocked(DisplayID dpy, glClearColor(0,0,0,1); glClear(GL_COLOR_BUFFER_BIT); - LOGD("screenshot: glClear() issued"); - const Vector< sp<LayerBase> >& layers(mVisibleLayersSortedByZ); const size_t count = layers.size(); for (size_t i=0 ; i<count ; ++i) { @@ -2199,8 +2195,6 @@ status_t SurfaceFlinger::captureScreenImplLocked(DisplayID dpy, } } - LOGD("screenshot: All layers rendered"); - // XXX: this is needed on tegra glScissor(0, 0, sw, sh); @@ -2215,10 +2209,6 @@ status_t SurfaceFlinger::captureScreenImplLocked(DisplayID dpy, new MemoryHeapBase(size, 0, "screen-capture") ); void* const ptr = base->getBase(); if (ptr) { - - LOGD("screenshot: about to call glReadPixels(0,0,%d,%d,...,%p)", - sw, sh, ptr); - // capture the screen with glReadPixels() glReadPixels(0, 0, sw, sh, GL_RGBA, GL_UNSIGNED_BYTE, ptr); if (glGetError() == GL_NO_ERROR) { @@ -2231,9 +2221,6 @@ status_t SurfaceFlinger::captureScreenImplLocked(DisplayID dpy, } else { result = NO_MEMORY; } - - LOGD("screenshot: glReadPixels() returned %s", strerror(result)); - } glEnable(GL_SCISSOR_TEST); glViewport(0, 0, hw_w, hw_h); @@ -2244,18 +2231,14 @@ status_t SurfaceFlinger::captureScreenImplLocked(DisplayID dpy, result = BAD_VALUE; } - LOGD("screenshot: about to release FBO resources"); - // release FBO resources glBindFramebufferOES(GL_FRAMEBUFFER_OES, 0); glDeleteRenderbuffersOES(1, &tname); glDeleteFramebuffersOES(1, &name); - LOGD("screenshot: about to call compositionComplete()"); - hw.compositionComplete(); - LOGD("screenshot: result = %s", strerror(result)); + LOGD("screenshot: result = %s", result<0 ? strerror(result) : "OK"); return result; } |