Removed synchronous image size getter 06/24106/1
authorDavid Steele <david.steele@partner.samsung.com>
Mon, 7 Jul 2014 19:35:36 +0000 (20:35 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 8 Jul 2014 13:19:40 +0000 (14:19 +0100)
commit199e382cf82c98b5d9ad2f6b8544e54007a1591b
treeccc00d20b0b097703d8ed9f568740c2346314e29
parent9625aef01ddb5517ca39825c216c1b58289d7eaa
Removed synchronous image size getter

[problem]      Image::New() takes 1-4ms under load
[cause]        Each Image::New() calls GetClosestImageSize(), which performs
synchronous file i/o to load the image header.
[solution]     Removed this call and backed off to use the requested size or the
loaded size.  Application code that relies on image size being immediately set on
creation will break. (Image actors will no longer get their size set
automatically ).

Change-Id: Ide116312cf841a61e13993ff42b7c8399bb86ca7
Signed-off-by: David Steele <david.steele@partner.samsung.com>
dali/internal/event/images/bitmap-image-impl.cpp
dali/internal/event/images/encoded-buffer-image-impl.cpp
dali/internal/event/images/frame-buffer-image-impl.cpp
dali/internal/event/images/image-impl.cpp
dali/internal/event/images/image-impl.h
dali/internal/event/images/nine-patch-image-impl.cpp