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

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

Issue 682223002: rename GrTextureDesc->GrSurfaceDesc, GrTextureFlags->GrSurfaceFlags (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: const Created 6 years, 1 month 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 | « src/gpu/GrResourceCache.cpp ('k') | 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « src/gpu/GrResourceCache.cpp ('k') | src/gpu/GrSWMaskHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698