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