diff options
| author | 2010-06-08 20:14:11 -0700 | |
|---|---|---|
| committer | 2010-06-08 20:14:11 -0700 | |
| commit | 74b3237fa93d73bcc44c57021c261bd81b9d9c9b (patch) | |
| tree | fcdb35e14852bd834d1d702aa94f07e2f3405942 /libs/ui/GraphicBuffer.cpp | |
| parent | 9cc61ca4877e8215ecf691d0cae2876be8329249 (diff) | |
| parent | 579b3f88d03d06b897b778bd11818f5104677d1d (diff) | |
Merge "allow re-targetting of surfaces" into kraken
Diffstat (limited to 'libs/ui/GraphicBuffer.cpp')
| -rw-r--r-- | libs/ui/GraphicBuffer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/ui/GraphicBuffer.cpp b/libs/ui/GraphicBuffer.cpp index 3ddde38f2c..4b5f02517a 100644 --- a/libs/ui/GraphicBuffer.cpp +++ b/libs/ui/GraphicBuffer.cpp @@ -111,6 +111,9 @@ status_t GraphicBuffer::reallocate(uint32_t w, uint32_t h, PixelFormat f, if (mOwner != ownData) return INVALID_OPERATION; + if (handle && w==width && h==height && f==format && reqUsage==usage) + return NO_ERROR; + if (handle) { GraphicBufferAllocator& allocator(GraphicBufferAllocator::get()); allocator.free(handle); |