1/* 2 * Copyright 2014 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8#ifndef SkTextureCompression_opts_DEFINED 9#define SkTextureCompression_opts_DEFINED 10 11#include "SkTextureCompressor.h" 12#include "SkImageInfo.h" 13 14SkTextureCompressor::CompressionProc 15SkTextureCompressorGetPlatformProc(SkColorType colorType, SkTextureCompressor::Format fmt); 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 false otherwise. 19bool SkTextureCompressorGetPlatformDims(SkTextureCompressor::Format fmt, int* dimX, int* dimY); 20 21#endif // SkTextureCompression_opts_DEFINED 22