/*
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

package com.facebook.fresco.ui.common;

public class DimensionsInfo {

  private int mViewportWidth;
  private int mViewportHeight;

  public DimensionsInfo(int viewportWidth, int viewportHeight) {
    mViewportWidth = viewportWidth;
    mViewportHeight = viewportHeight;
  }

  public int getViewportWidth() {
    return mViewportWidth;
  }

  public int getViewportHeight() {
    return mViewportHeight;
  }

  @Override
  public String toString() {
    return "DimensionsInfo{"
        + "mViewportWidth="
        + mViewportWidth
        + ", mViewportHeight="
        + mViewportHeight
        + '}';
  }
}

@@ -255,32 +255,38 @@
 fo %7B%0A%0A  private 
+final 
 int mViewportWid
@@ -299,16 +299,22 @@
 private 
+final 
 int mVie
@@ -327,16 +327,180 @@
 eight;%0A%0A
+  private final int mEncodedImageWidth;%0A  private final int mEncodedImageHeight;%0A%0A  private final int mDecodedImageWidth;%0A  private final int mDecodedImageHeight;%0A%0A
   public
@@ -515,16 +515,23 @@
 onsInfo(
+%0A      
 int view
@@ -563,212 +563,798 @@
 ight
-) %7B%0A    mViewportWidth = viewportWidth;%0A    mViewportHeight = viewportHeight;%0A  %7D%0A%0A  public int getViewportWidth() %7B%0A    return mViewportWidth;%0A  %7D%0A%0A  public int getViewportHeight() %7B%0A    return mViewport
+,%0A      int encodedImageWidth, int encodedImageHeight,%0A      int decodedImageWidth, int decodedImageHeight) %7B%0A    mViewportWidth = viewportWidth;%0A    mViewportHeight = viewportHeight;%0A    mEncodedImageWidth = encodedImageWidth;%0A    mEncodedImageHeight = encodedImageHeight;%0A    mDecodedImageWidth = decodedImageWidth;%0A    mDecodedImageHeight = decodedImageHeight;%0A  %7D%0A%0A  public int getViewportWidth() %7B%0A    return mViewportWidth;%0A  %7D%0A%0A  public int getViewportHeight() %7B%0A    return mViewportHeight;%0A  %7D%0A%0A  public int getEncodedImageWidth() %7B%0A    return mEncodedImageWidth;%0A  %7D%0A%0A  public int getEncodedImageHeight() %7B%0A    return mEncodedImageHeight;%0A  %7D%0A%0A  public int getDecodedImageWidth() %7B%0A    return mDecodedImageWidth;%0A  %7D%0A%0A  public int getDecodedImageHeight() %7B%0A    return mDecodedImage
 Heig
@@ -1431,24 +1431,26 @@
 nsInfo%7B%22
+ +
 %0A       
  + %22mVie
@@ -1441,18 +1441,16 @@
 %0A       
- +
  %22mViewp
@@ -1459,24 +1459,16 @@
 tWidth=%22
-%0A       
  + mView
@@ -1476,26 +1476,26 @@
 ortWidth
-%0A
  
++%0A
        
-+
  %22, mVie
@@ -1507,24 +1507,16 @@
 Height=%22
-%0A       
  + mView
@@ -1519,22 +1519,136 @@
 Viewport
+Height +%0A        %22, mEncodedImageWidth=%22 + mEncodedImageWidth +%0A        %22, mEncodedImageHeight=%22 + mEncodedImage
 Height
+ +
 %0A       
@@ -1648,17 +1648,127 @@
         
-+
+%22, mDecodedImageWidth=%22 + mDecodedImageWidth +%0A        %22, mDecodedImageHeight=%22 + mDecodedImageHeight +%0A       
  '%7D';%0A  

Add encoded and decoded image dimensions