| Index: gm/filterindiabox.cpp
|
| diff --git a/gm/filterindiabox.cpp b/gm/filterindiabox.cpp
|
| index 4acb2c3a71554119bf16dec986c9795adebb3b68..1987c95bf781d7caacc226625e7791a0fd5a2d5d 100644
|
| --- a/gm/filterindiabox.cpp
|
| +++ b/gm/filterindiabox.cpp
|
| @@ -6,15 +6,15 @@
|
| */
|
|
|
| #include "gm.h"
|
| -#include "SkGradientShader.h"
|
|
|
| -#include "SkTypeface.h"
|
| +#include "Resources.h"
|
| +#include "SkBitmapProcState.h"
|
| +#include "SkBitmapScaler.h"
|
| +#include "SkGradientShader.h"
|
| #include "SkImageDecoder.h"
|
| -#include "SkStream.h"
|
| -
|
| #include "SkImageEncoder.h"
|
| -#include "SkBitmapScaler.h"
|
| -#include "SkBitmapProcState.h"
|
| +#include "SkStream.h"
|
| +#include "SkTypeface.h"
|
|
|
| static SkSize computeSize(const SkBitmap& bm, const SkMatrix& mat) {
|
| SkRect bounds = SkRect::MakeWH(SkIntToScalar(bm.width()),
|
| @@ -104,12 +104,12 @@ protected:
|
| }
|
|
|
| void makeBitmap() {
|
| - SkString path(skiagm::GM::gResourcePath);
|
| - path.append("/");
|
| - path.append(fFilename);
|
| + SkString resourcePath = GetResourcePath();
|
| + resourcePath.append("/");
|
| + resourcePath.append(fFilename);
|
|
|
| - SkImageDecoder *codec = NULL;
|
| - SkFILEStream stream(path.c_str());
|
| + SkImageDecoder* codec = NULL;
|
| + SkFILEStream stream(resourcePath.c_str());
|
| if (stream.isValid()) {
|
| codec = SkImageDecoder::Factory(&stream);
|
| }
|
|
|