| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 #ifndef GrConfigConversionEffect_DEFINED | 8 #ifndef GrConfigConversionEffect_DEFINED |
| 9 #define GrConfigConversionEffect_DEFINED | 9 #define GrConfigConversionEffect_DEFINED |
| 10 | 10 |
| 11 #include "GrSingleTextureEffect.h" | 11 #include "GrSingleTextureEffect.h" |
| 12 | 12 |
| 13 class GrFragmentStage; | 13 class GrProcessorStage; |
| 14 class GrGLConfigConversionEffect; | 14 class GrGLConfigConversionEffect; |
| 15 | 15 |
| 16 /** | 16 /** |
| 17 * This class is used to perform config conversions. Clients may want to read/wr
ite data that is | 17 * This class is used to perform config conversions. Clients may want to read/wr
ite data that is |
| 18 * unpremultiplied. Also on some systems reading/writing BGRA or RGBA is faster.
In those cases we | 18 * unpremultiplied. Also on some systems reading/writing BGRA or RGBA is faster.
In those cases we |
| 19 * read/write using the faster path and perform an R/B swap in the shader if the
client data is in | 19 * read/write using the faster path and perform an R/B swap in the shader if the
client data is in |
| 20 * the slower config. | 20 * the slower config. |
| 21 */ | 21 */ |
| 22 class GrConfigConversionEffect : public GrSingleTextureEffect { | 22 class GrConfigConversionEffect : public GrSingleTextureEffect { |
| 23 public: | 23 public: |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 bool fSwapRedAndBlue; | 68 bool fSwapRedAndBlue; |
| 69 PMConversion fPMConversion; | 69 PMConversion fPMConversion; |
| 70 | 70 |
| 71 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; | 71 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; |
| 72 | 72 |
| 73 typedef GrSingleTextureEffect INHERITED; | 73 typedef GrSingleTextureEffect INHERITED; |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 #endif | 76 #endif |
| OLD | NEW |