aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/readpixels.cpp
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2017-12-08 10:21:31 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-08 17:16:00 +0000
commitc465d13e6fca5e171bde45d35b2dd43117f4702e (patch)
tree588b2b31ffba95ed8eecb5327cb4335f35c8c1bd /gm/readpixels.cpp
parent4bcef3c40ad8d3a16bbca4ab74fa15256fb4b125 (diff)
resources: orgainize directory.
Should make it easier to ask just for images. Change-Id: If821743dc924c4bfbc6b2b2d29b14affde7b3afd Reviewed-on: https://skia-review.googlesource.com/82684 Commit-Queue: Hal Canary <halcanary@google.com> Reviewed-by: Leon Scroggins <scroggo@google.com>
Diffstat (limited to 'gm/readpixels.cpp')
-rw-r--r--gm/readpixels.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/readpixels.cpp b/gm/readpixels.cpp
index bd2fe9bcc3..6e8a51a814 100644
--- a/gm/readpixels.cpp
+++ b/gm/readpixels.cpp
@@ -51,7 +51,7 @@ static const int kWidth = 64;
static const int kHeight = 64;
static sk_sp<SkImage> make_raster_image(SkColorType colorType) {
- std::unique_ptr<SkStream> stream(GetResourceAsStream("google_chrome.ico"));
+ std::unique_ptr<SkStream> stream(GetResourceAsStream("images/google_chrome.ico"));
std::unique_ptr<SkCodec> codec = SkCodec::MakeFromStream(std::move(stream));
SkBitmap bitmap;
@@ -66,7 +66,7 @@ static sk_sp<SkImage> make_raster_image(SkColorType colorType) {
}
static sk_sp<SkImage> make_codec_image() {
- sk_sp<SkData> encoded = GetResourceAsData("randPixels.png");
+ sk_sp<SkData> encoded = GetResourceAsData("images/randPixels.png");
return SkImage::MakeFromEncoded(encoded);
}