| 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 #include "GrTextureMaker.h" | 8 #include "GrTextureMaker.h" |
| 9 | 9 |
| 10 #include "SkGr.h" | 10 #include "SkGr.h" |
| 11 | 11 |
| 12 #include "GrCaps.h" | 12 #include "GrCaps.h" |
| 13 #include "GrContext.h" |
| 13 #include "GrDrawContext.h" | 14 #include "GrDrawContext.h" |
| 14 #include "GrXferProcessor.h" | 15 #include "GrXferProcessor.h" |
| 15 #include "GrYUVProvider.h" | 16 #include "GrYUVProvider.h" |
| 16 | 17 |
| 17 #include "SkColorFilter.h" | 18 #include "SkColorFilter.h" |
| 18 #include "SkConfig8888.h" | 19 #include "SkConfig8888.h" |
| 19 #include "SkCanvas.h" | 20 #include "SkCanvas.h" |
| 20 #include "SkData.h" | 21 #include "SkData.h" |
| 21 #include "SkErrorInternals.h" | 22 #include "SkErrorInternals.h" |
| 22 #include "SkGrPixelRef.h" | 23 #include "SkGrPixelRef.h" |
| (...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 973 SkBitmap stretchedBmp = stretch_on_cpu(bitmap, stretch); | 974 SkBitmap stretchedBmp = stretch_on_cpu(bitmap, stretch); |
| 974 return create_unstretched_bitmap_texture(ctx, stretchedBmp, GrUniqueKey(
)); | 975 return create_unstretched_bitmap_texture(ctx, stretchedBmp, GrUniqueKey(
)); |
| 975 } else { | 976 } else { |
| 976 SkAutoTUnref<GrTexture> unstretched(this->onRefUnstretchedTexture(ctx)); | 977 SkAutoTUnref<GrTexture> unstretched(this->onRefUnstretchedTexture(ctx)); |
| 977 if (!unstretched) { | 978 if (!unstretched) { |
| 978 return nullptr; | 979 return nullptr; |
| 979 } | 980 } |
| 980 return stretch_texture(unstretched, stretch, nullptr, GrUniqueKey()); | 981 return stretch_texture(unstretched, stretch, nullptr, GrUniqueKey()); |
| 981 } | 982 } |
| 982 } | 983 } |
| OLD | NEW |