OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
4 * | 3 * |
5 * 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 |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 | 8 |
10 #include "GrStencil.h" | 9 #include "GrStencil.h" |
11 | 10 |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 } | 394 } |
396 return false; | 395 return false; |
397 } | 396 } |
398 | 397 |
399 void GrStencilSettings::genKey(GrProcessorKeyBuilder* b) const { | 398 void GrStencilSettings::genKey(GrProcessorKeyBuilder* b) const { |
400 static const int kCount = sizeof(GrStencilSettings) / sizeof(uint32_t); | 399 static const int kCount = sizeof(GrStencilSettings) / sizeof(uint32_t); |
401 GR_STATIC_ASSERT(0 == sizeof(GrStencilSettings) % sizeof(uint32_t)); | 400 GR_STATIC_ASSERT(0 == sizeof(GrStencilSettings) % sizeof(uint32_t)); |
402 uint32_t* key = b->add32n(kCount); | 401 uint32_t* key = b->add32n(kCount); |
403 memcpy(key, this, sizeof(GrStencilSettings)); | 402 memcpy(key, this, sizeof(GrStencilSettings)); |
404 } | 403 } |
OLD | NEW |