| 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 GrSWMaskHelper_DEFINED | 8 #ifndef GrSWMaskHelper_DEFINED |
| 9 #define GrSWMaskHelper_DEFINED | 9 #define GrSWMaskHelper_DEFINED |
| 10 | 10 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 // only allocated (non-null) if fCompressionMode is kBlitter_CompressionMode | 121 // only allocated (non-null) if fCompressionMode is kBlitter_CompressionMode |
| 122 SkAutoMalloc fCompressedBuffer; | 122 SkAutoMalloc fCompressedBuffer; |
| 123 | 123 |
| 124 // This is the desired format within which to compress the | 124 // This is the desired format within which to compress the |
| 125 // texture. This value is only valid if fCompressionMode is not kNone_Compre
ssionMode. | 125 // texture. This value is only valid if fCompressionMode is not kNone_Compre
ssionMode. |
| 126 SkTextureCompressor::Format fCompressedFormat; | 126 SkTextureCompressor::Format fCompressedFormat; |
| 127 | 127 |
| 128 // Actually sends the texture data to the GPU. This is called from | 128 // Actually sends the texture data to the GPU. This is called from |
| 129 // toTexture with the data filled in depending on the texture config. | 129 // toTexture with the data filled in depending on the texture config. |
| 130 void sendTextureData(GrTexture *texture, const GrSurfaceDesc& desc, | 130 void sendTextureData(GrTexture *texture, const GrSurfaceDesc& desc, |
| 131 const void *data, int rowbytes); | 131 const void *data, size_t rowbytes); |
| 132 | 132 |
| 133 // Compresses the bitmap stored in fBM and sends the compressed data | 133 // Compresses the bitmap stored in fBM and sends the compressed data |
| 134 // to the GPU to be stored in 'texture' using sendTextureData. | 134 // to the GPU to be stored in 'texture' using sendTextureData. |
| 135 void compressTextureData(GrTexture *texture, const GrSurfaceDesc& desc); | 135 void compressTextureData(GrTexture *texture, const GrSurfaceDesc& desc); |
| 136 | 136 |
| 137 typedef SkNoncopyable INHERITED; | 137 typedef SkNoncopyable INHERITED; |
| 138 }; | 138 }; |
| 139 | 139 |
| 140 #endif // GrSWMaskHelper_DEFINED | 140 #endif // GrSWMaskHelper_DEFINED |
| OLD | NEW |