Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Unified Diff: include/codec/SkCodec.h

Issue 995303004: Implement SkCodec::getScaledDimensions. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Include SkStream so SkAutoTDelete can delete it. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/codec/SkCodec.h
diff --git a/include/codec/SkCodec.h b/include/codec/SkCodec.h
index 93416be51ea2654d45ab5c4a13574ceee084d954..6d0557cb28d22445c9dd9de1550e8a99eea97e6a 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*);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698