aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/opts/SkTextureCompression_opts.h
blob: 07d645f0edbf4cfce683360133758a38e6bfbf1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Copyright 2014
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef SkTextureCompression_opts_DEFINED
#define SkTextureCompression_opts_DEFINED

#include "SkTextureCompressor.h"
#include "SkImageInfo.h"

SkTextureCompressor::CompressionProc
SkTextureCompressorGetPlatformProc(SkColorType colorType, SkTextureCompressor::Format fmt);

// Returns true if dimX and dimY are set to the block size of the supplied
// compression format according to how the platform can consume them. Returns false otherwise.
bool SkTextureCompressorGetPlatformDims(SkTextureCompressor::Format fmt, int* dimX, int* dimY);

#endif  // SkTextureCompression_opts_DEFINED