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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
99 SkMatrix fMatrix; | 99 SkMatrix fMatrix; |
100 SkBitmap fBM; | 100 SkBitmap fBM; |
101 SkDraw fDraw; | 101 SkDraw fDraw; |
102 SkRasterClip fRasterClip; | 102 SkRasterClip fRasterClip; |
103 | 103 |
104 // Actually sends the texture data to the GPU. This is called from | 104 // Actually sends the texture data to the GPU. This is called from |
105 // toTexture with the data filled in depending on the texture config. | 105 // toTexture with the data filled in depending on the texture config. |
106 void sendTextureData(GrTexture *texture, const GrTextureDesc& desc, | 106 void sendTextureData(GrTexture *texture, const GrTextureDesc& desc, |
107 const void *data, int rowbytes); | 107 const void *data, int rowbytes); |
108 | 108 |
109 // Compresses the bitmap stored in fBM and sends the compressed data | |
robertphillips
2014/07/16 12:13:23
in texture -> in a texture ?
krajcevski
2014/07/16 13:43:03
Done.
| |
110 // to the GPU to be stored in texture using sendTextureData. | |
111 void compressTextureData(GrTexture *texture, const GrTextureDesc& desc); | |
112 | |
109 typedef SkNoncopyable INHERITED; | 113 typedef SkNoncopyable INHERITED; |
110 }; | 114 }; |
111 | 115 |
112 #endif // GrSWMaskHelper_DEFINED | 116 #endif // GrSWMaskHelper_DEFINED |
OLD | NEW |