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

Unified Diff: samplecode/SampleLines.cpp

Issue 1812323003: Remove uses of SkImageDecoder from samplecode (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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 | « samplecode/SampleLighting.cpp ('k') | samplecode/SamplePatch.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleLines.cpp
diff --git a/samplecode/SampleLines.cpp b/samplecode/SampleLines.cpp
index da5fa57681e218f87c20332038b6fffafcd71cfe..08a9e86c4b1b8bbb915f8437d9aa1a9c6abf7e9c 100644
--- a/samplecode/SampleLines.cpp
+++ b/samplecode/SampleLines.cpp
@@ -5,13 +5,13 @@
* found in the LICENSE file.
*/
+#include "DecodeFile.h"
#include "SampleCode.h"
#include "SkView.h"
#include "SkCanvas.h"
#include "SkCornerPathEffect.h"
#include "SkGradientShader.h"
#include "SkGraphics.h"
-#include "SkImageDecoder.h"
#include "SkPath.h"
#include "SkRandom.h"
#include "SkRegion.h"
@@ -25,7 +25,6 @@
#include "SkStream.h"
#include "SkColorPriv.h"
-#include "SkImageDecoder.h"
class LinesView : public SampleView {
public:
@@ -63,7 +62,7 @@ protected:
void onDrawContent(SkCanvas* canvas) override {
SkBitmap bm;
- SkImageDecoder::DecodeFile("/kill.gif", &bm);
+ decode_file("/kill.gif", &bm);
canvas->drawBitmap(bm, 0, 0, nullptr);
this->drawRings(canvas);
« no previous file with comments | « samplecode/SampleLighting.cpp ('k') | samplecode/SamplePatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698