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

Side by Side Diff: include/gpu/GrResourceKey.h

Issue 1272293004: Move SkTemplates.h to private. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: It's a struct! 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 | « include/core/SkWriter32.h ('k') | include/ports/SkRemotableFontMgr.h » ('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 /* 2 /*
3 * Copyright 2014 Google Inc. 3 * Copyright 2014 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef GrResourceKey_DEFINED 9 #ifndef GrResourceKey_DEFINED
10 #define GrResourceKey_DEFINED 10 #define GrResourceKey_DEFINED
11 11
12 #include "../private/SkTemplates.h"
12 #include "GrTypes.h" 13 #include "GrTypes.h"
13 #include "SkData.h" 14 #include "SkData.h"
14 #include "SkOnce.h" 15 #include "SkOnce.h"
15 #include "SkTemplates.h"
16 16
17 uint32_t GrResourceKeyHash(const uint32_t* data, size_t size); 17 uint32_t GrResourceKeyHash(const uint32_t* data, size_t size);
18 18
19 /** 19 /**
20 * Base class for all GrGpuResource cache keys. There are two types of cache key s. Refer to the 20 * Base class for all GrGpuResource cache keys. There are two types of cache key s. Refer to the
21 * comments for each key type below. 21 * comments for each key type below.
22 */ 22 */
23 class GrResourceKey { 23 class GrResourceKey {
24 public: 24 public:
25 uint32_t hash() const { 25 uint32_t hash() const {
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 fKey = that.fKey; 312 fKey = that.fKey;
313 return *this; 313 return *this;
314 } 314 }
315 315
316 const GrUniqueKey& key() const { return fKey; } 316 const GrUniqueKey& key() const { return fKey; }
317 317
318 private: 318 private:
319 GrUniqueKey fKey; 319 GrUniqueKey fKey;
320 }; 320 };
321 #endif 321 #endif
OLDNEW
« no previous file with comments | « include/core/SkWriter32.h ('k') | include/ports/SkRemotableFontMgr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698