summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-12-07 14:20:09 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2010-12-07 14:20:09 -0800
commit48f42f8c3fbd33b2f46c6290ff5963dd58938cf9 (patch)
tree0c01be4789618cc40496eab0d4919b1d3703d329 /include
parent03dc51b1a07c7d79f1d12751b19ebda044857333 (diff)
parent4153bf3a259624a2f2dc497b77b225a1fb517abc (diff)
downloadframeworks_base-48f42f8c3fbd33b2f46c6290ff5963dd58938cf9.zip
frameworks_base-48f42f8c3fbd33b2f46c6290ff5963dd58938cf9.tar.gz
frameworks_base-48f42f8c3fbd33b2f46c6290ff5963dd58938cf9.tar.bz2
am 4153bf3a: Merge "[3171580] don\'t automatically log GraphicBuffer allocation failures" into gingerbread
* commit '4153bf3a259624a2f2dc497b77b225a1fb517abc': [3171580] don't automatically log GraphicBuffer allocation failures
Diffstat (limited to 'include')
-rw-r--r--include/ui/GraphicBuffer.h5
-rw-r--r--include/ui/GraphicBufferAllocator.h1
2 files changed, 5 insertions, 1 deletions
diff --git a/include/ui/GraphicBuffer.h b/include/ui/GraphicBuffer.h
index a3e85a9..6edc3ca 100644
--- a/include/ui/GraphicBuffer.h
+++ b/include/ui/GraphicBuffer.h
@@ -88,12 +88,15 @@ public:
status_t lock(uint32_t usage, const Rect& rect, void** vaddr);
status_t lock(GGLSurface* surface, uint32_t usage);
status_t unlock();
-
+
android_native_buffer_t* getNativeBuffer() const;
void setIndex(int index);
int getIndex() const;
+ // for debugging
+ static void dumpAllocationsToSystemLog();
+
private:
virtual ~GraphicBuffer();
diff --git a/include/ui/GraphicBufferAllocator.h b/include/ui/GraphicBufferAllocator.h
index 54b8236..dffa788 100644
--- a/include/ui/GraphicBufferAllocator.h
+++ b/include/ui/GraphicBufferAllocator.h
@@ -68,6 +68,7 @@ public:
status_t free(buffer_handle_t handle);
void dump(String8& res) const;
+ static void dumpToSystemLog();
private:
struct alloc_rec_t {