Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: src/gpu/GrSWMaskHelper.h

Issue 398603004: Generalize mask helper a bit for compression (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Clarity in organization Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/gpu/GrSWMaskHelper.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrSWMaskHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698