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

Side by Side Diff: src/opts/SkTextureCompression_opts.h

Issue 422023006: Add query for block dimensions of a given format (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Bracketing ifdefs Created 6 years, 4 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 | « src/gpu/GrSWMaskHelper.cpp ('k') | src/opts/SkTextureCompression_opts_arm.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 2014 2 * Copyright 2014
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 SkTextureCompression_opts_DEFINED 8 #ifndef SkTextureCompression_opts_DEFINED
9 #define SkTextureCompression_opts_DEFINED 9 #define SkTextureCompression_opts_DEFINED
10 10
11 #include "SkTextureCompressor.h" 11 #include "SkTextureCompressor.h"
12 #include "SkImageInfo.h" 12 #include "SkImageInfo.h"
13 13
14 SkTextureCompressor::CompressionProc 14 SkTextureCompressor::CompressionProc
15 SkTextureCompressorGetPlatformProc(SkColorType colorType, SkTextureCompressor::F ormat fmt); 15 SkTextureCompressorGetPlatformProc(SkColorType colorType, SkTextureCompressor::F ormat fmt);
16 16
17 // Returns true if dimX and dimY are set to the block size of the supplied
18 // compression format according to how the platform can consume them. Returns fa lse otherwise.
19 bool SkTextureCompressorGetPlatformDims(SkTextureCompressor::Format fmt, int* di mX, int* dimY);
20
17 #endif // SkTextureCompression_opts_DEFINED 21 #endif // SkTextureCompression_opts_DEFINED
OLDNEW
« no previous file with comments | « src/gpu/GrSWMaskHelper.cpp ('k') | src/opts/SkTextureCompression_opts_arm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698