aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/codec
diff options
context:
space:
mode:
authorGravatar scroggo <scroggo@google.com>2015-03-18 10:50:37 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-18 10:50:37 -0700
commitfffeedefbb84a90146c9dbb770dc460b5d013a9c (patch)
tree7c4e00285876c0a0647d0a4eeb1476c9439f362d /include/codec
parentf94fa7112f67af6fc5db19f86d8397307ba17105 (diff)
Implement SkCodec::getScaledDimensions.
Left out of a prior CL since no one was calling it... Review URL: https://codereview.chromium.org/995303004
Diffstat (limited to 'include/codec')
-rw-r--r--include/codec/SkCodec.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/codec/SkCodec.h b/include/codec/SkCodec.h
index 93416be51e..6d0557cb28 100644
--- a/include/codec/SkCodec.h
+++ b/include/codec/SkCodec.h
@@ -11,11 +11,11 @@
#include "SkImageGenerator.h"
#include "SkImageInfo.h"
#include "SkSize.h"
+#include "SkStream.h"
#include "SkTemplates.h"
#include "SkTypes.h"
class SkData;
-class SkStream;
/**
* Abstraction layer directly on top of an image codec.
@@ -46,7 +46,9 @@ public:
*
* FIXME: Move to SkImageGenerator?
*/
- SkISize getScaledDimensions(float desiredScale) const;
+ SkISize getScaledDimensions(float desiredScale) const {
+ return this->onGetScaledDimensions(desiredScale);
+ }
protected:
SkCodec(const SkImageInfo&, SkStream*);