| OLD | NEW |
| 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 "../private/SkTemplates.h" |
| 13 #include "GrTypes.h" | 13 #include "GrTypes.h" |
| 14 #include "SkData.h" | 14 #include "SkData.h" |
| 15 #include "SkOnce.h" | 15 #include "../private/SkOnce.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 Loading... |
| 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 |
| OLD | NEW |