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

Side by Side Diff: tools/Resources.h

Issue 1306133003: GMs: change some GMs to use SkImage over SkBitmap (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 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 unified diff | Download patch
« no previous file with comments | « gm/grayscalejpg.cpp ('k') | tools/Resources.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef Resources_DEFINED 8 #ifndef Resources_DEFINED
9 #define Resources_DEFINED 9 #define Resources_DEFINED
10 10
11 #include "SkString.h" 11 #include "SkString.h"
12 12
13 class SkBitmap; 13 class SkBitmap;
14 class SkImage;
14 class SkStreamAsset; 15 class SkStreamAsset;
15 class SkTypeface; 16 class SkTypeface;
16 17
17 SkString GetResourcePath(const char* resource = ""); 18 SkString GetResourcePath(const char* resource = "");
18 void SetResourcePath(const char* ); 19 void SetResourcePath(const char* );
19 20
20 bool GetResourceAsBitmap(const char* resource, SkBitmap* dst); 21 bool GetResourceAsBitmap(const char* resource, SkBitmap* dst);
22 SkImage* GetResourceAsImage(const char* resource);
21 SkStreamAsset* GetResourceAsStream(const char* resource); 23 SkStreamAsset* GetResourceAsStream(const char* resource);
22 SkTypeface* GetResourceAsTypeface(const char* resource); 24 SkTypeface* GetResourceAsTypeface(const char* resource);
23 25
24 #endif // Resources_DEFINED 26 #endif // Resources_DEFINED
OLDNEW
« no previous file with comments | « gm/grayscalejpg.cpp ('k') | tools/Resources.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698