fixup! Fix SkBitmap::config() removal in chrome.
authorTomasz Weglarski <t.weglarski@samsung.com>
Tue, 10 Feb 2015 09:23:43 +0000 (10:23 +0100)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
[Requirement] WCS-TC-130

This patch fixes Command::deserialize method.
Reviewed by: Hyunhak Kim, Kamil Klimek, Marcin Kolibabka, Piotr Grad, Piotr Tworek

Change-Id: I3410c70da4942f1f5513959ad0f42ef617cb80f9
Signed-off-by: Tomasz Weglarski <t.weglarski@samsung.com>
tizen_src/impl/browser/favicon/favicon_commands.cc

index 1b49b58..34b2e49 100644 (file)
@@ -65,8 +65,8 @@ SkBitmap Command::deserialize(const void *data) {
 
   SkColorType colorType = static_cast<SkColorType>(static_cast<const int *>(data)[0]);
   SkAlphaType alphaType = static_cast<SkAlphaType>(static_cast<const int *>(data)[1]);
-  int width = static_cast<const int *>(data)[1];
-  int height = static_cast<const int *>(data)[2];
+  int width = static_cast<const int *>(data)[2];
+  int height = static_cast<const int *>(data)[3];
   SkBitmap bitmap;
   bitmap.setInfo(SkImageInfo::Make(width, height, colorType, alphaType), 0);
   bitmap.setPixels(static_cast<int *>(const_cast<void *>(data)) + 4);