OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 Google Inc. |
3 * | 3 * |
4 * 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 |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 | 8 |
9 #include "SkGr.h" | 9 #include "SkGr.h" |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "SkMessageBus.h" | 25 #include "SkMessageBus.h" |
26 #include "SkPixelRef.h" | 26 #include "SkPixelRef.h" |
27 #include "SkResourceCache.h" | 27 #include "SkResourceCache.h" |
28 #include "SkTextureCompressor.h" | 28 #include "SkTextureCompressor.h" |
29 #include "SkYUVPlanesCache.h" | 29 #include "SkYUVPlanesCache.h" |
30 #include "effects/GrBicubicEffect.h" | 30 #include "effects/GrBicubicEffect.h" |
31 #include "effects/GrConstColorProcessor.h" | 31 #include "effects/GrConstColorProcessor.h" |
32 #include "effects/GrDitherEffect.h" | 32 #include "effects/GrDitherEffect.h" |
33 #include "effects/GrPorterDuffXferProcessor.h" | 33 #include "effects/GrPorterDuffXferProcessor.h" |
34 #include "effects/GrXfermodeFragmentProcessor.h" | 34 #include "effects/GrXfermodeFragmentProcessor.h" |
35 #include "effects/GrYUVtoRGBEffect.h" | 35 #include "effects/GrYUVEffect.h" |
36 | 36 |
37 #ifndef SK_IGNORE_ETC1_SUPPORT | 37 #ifndef SK_IGNORE_ETC1_SUPPORT |
38 # include "ktx.h" | 38 # include "ktx.h" |
39 # include "etc1.h" | 39 # include "etc1.h" |
40 #endif | 40 #endif |
41 | 41 |
42 GrSurfaceDesc GrImageInfoToSurfaceDesc(const SkImageInfo& info) { | 42 GrSurfaceDesc GrImageInfoToSurfaceDesc(const SkImageInfo& info) { |
43 GrSurfaceDesc desc; | 43 GrSurfaceDesc desc; |
44 desc.fFlags = kNone_GrSurfaceFlags; | 44 desc.fFlags = kNone_GrSurfaceFlags; |
45 desc.fWidth = info.width(); | 45 desc.fWidth = info.width(); |
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 SkErrorInternals::SetError( kInvalidPaint_SkError, | 627 SkErrorInternals::SetError( kInvalidPaint_SkError, |
628 "Sorry, I don't understand the filtering
" | 628 "Sorry, I don't understand the filtering
" |
629 "mode you asked for. Falling back to " | 629 "mode you asked for. Falling back to " |
630 "MIPMaps."); | 630 "MIPMaps."); |
631 textureFilterMode = GrTextureParams::kMipMap_FilterMode; | 631 textureFilterMode = GrTextureParams::kMipMap_FilterMode; |
632 break; | 632 break; |
633 | 633 |
634 } | 634 } |
635 return textureFilterMode; | 635 return textureFilterMode; |
636 } | 636 } |
OLD | NEW |