| 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 #include "GrContext.h" | 8 #include "GrContext.h" |
| 10 #include "GrCaps.h" | 9 #include "GrCaps.h" |
| 11 #include "GrGpu.h" | 10 #include "GrGpu.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 SkASSERT(desc.fSampleCnt < (1 << 8)); | 118 SkASSERT(desc.fSampleCnt < (1 << 8)); |
| 120 SkASSERT(flags < (1 << 10)); | 119 SkASSERT(flags < (1 << 10)); |
| 121 SkASSERT(static_cast<int>(origin) < (1 << 8)); | 120 SkASSERT(static_cast<int>(origin) < (1 << 8)); |
| 122 | 121 |
| 123 GrScratchKey::Builder builder(key, kType, 3); | 122 GrScratchKey::Builder builder(key, kType, 3); |
| 124 builder[0] = desc.fWidth; | 123 builder[0] = desc.fWidth; |
| 125 builder[1] = desc.fHeight; | 124 builder[1] = desc.fHeight; |
| 126 builder[2] = desc.fConfig | (desc.fIsMipMapped << 5) | (desc.fSampleCnt << 6
) | (flags << 14) | 125 builder[2] = desc.fConfig | (desc.fIsMipMapped << 5) | (desc.fSampleCnt << 6
) | (flags << 14) |
| 127 | (origin << 24); | 126 | (origin << 24); |
| 128 } | 127 } |
| OLD | NEW |