| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 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 #include "GrContext.h" | 9 #include "GrContext.h" |
| 10 #include "GrDrawTargetCaps.h" | 10 #include "GrCaps.h" |
| 11 #include "GrGpu.h" | 11 #include "GrGpu.h" |
| 12 #include "GrResourceKey.h" | 12 #include "GrResourceKey.h" |
| 13 #include "GrRenderTarget.h" | 13 #include "GrRenderTarget.h" |
| 14 #include "GrRenderTargetPriv.h" | 14 #include "GrRenderTargetPriv.h" |
| 15 #include "GrTexture.h" | 15 #include "GrTexture.h" |
| 16 #include "GrTexturePriv.h" | 16 #include "GrTexturePriv.h" |
| 17 | 17 |
| 18 void GrTexture::dirtyMipMaps(bool mipMapsDirty) { | 18 void GrTexture::dirtyMipMaps(bool mipMapsDirty) { |
| 19 if (mipMapsDirty) { | 19 if (mipMapsDirty) { |
| 20 if (kValid_MipMapsStatus == fMipMapsStatus) { | 20 if (kValid_MipMapsStatus == fMipMapsStatus) { |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 SkASSERT(desc.fWidth <= SK_MaxU16); | 102 SkASSERT(desc.fWidth <= SK_MaxU16); |
| 103 SkASSERT(desc.fHeight <= SK_MaxU16); | 103 SkASSERT(desc.fHeight <= SK_MaxU16); |
| 104 SkASSERT(static_cast<int>(desc.fConfig) < (1 << 6)); | 104 SkASSERT(static_cast<int>(desc.fConfig) < (1 << 6)); |
| 105 SkASSERT(desc.fSampleCnt < (1 << 8)); | 105 SkASSERT(desc.fSampleCnt < (1 << 8)); |
| 106 SkASSERT(flags < (1 << 10)); | 106 SkASSERT(flags < (1 << 10)); |
| 107 SkASSERT(static_cast<int>(origin) < (1 << 8)); | 107 SkASSERT(static_cast<int>(origin) < (1 << 8)); |
| 108 | 108 |
| 109 builder[0] = desc.fWidth | (desc.fHeight << 16); | 109 builder[0] = desc.fWidth | (desc.fHeight << 16); |
| 110 builder[1] = desc.fConfig | (desc.fSampleCnt << 6) | (flags << 14) | (origin
<< 24); | 110 builder[1] = desc.fConfig | (desc.fSampleCnt << 6) | (flags << 14) | (origin
<< 24); |
| 111 } | 111 } |
| OLD | NEW |