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

Side by Side Diff: src/utils/SkTextureCompressor.h

Issue 384053003: Revert of Add support for NEON intrinsics to speed up texture compression. We can (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « src/opts/SkTextureCompression_opts_none.cpp ('k') | src/utils/SkTextureCompressor.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 Google Inc. 2 * Copyright 2014 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 SkTextureCompressor_DEFINED 8 #ifndef SkTextureCompressor_DEFINED
9 #define SkTextureCompressor_DEFINED 9 #define SkTextureCompressor_DEFINED
10 10
(...skipping 16 matching lines...) Expand all
27 // Returns an SkData holding a blob of compressed data that corresponds 27 // Returns an SkData holding a blob of compressed data that corresponds
28 // to the bitmap. If the bitmap colorType cannot be compressed using the 28 // to the bitmap. If the bitmap colorType cannot be compressed using the
29 // associated format, then we return NULL. The caller is responsible for 29 // associated format, then we return NULL. The caller is responsible for
30 // calling unref() on the returned data. 30 // calling unref() on the returned data.
31 SkData* CompressBitmapToFormat(const SkBitmap& bitmap, Format format); 31 SkData* CompressBitmapToFormat(const SkBitmap& bitmap, Format format);
32 32
33 // Compresses the given src data into dst. The src data is assumed to be 33 // Compresses the given src data into dst. The src data is assumed to be
34 // large enough to hold width*height pixels. The dst data is expected to 34 // large enough to hold width*height pixels. The dst data is expected to
35 // be large enough to hold the compressed data according to the format. 35 // be large enough to hold the compressed data according to the format.
36 bool CompressBufferToFormat(uint8_t* dst, const uint8_t* src, SkColorType sr cColorType, 36 bool CompressBufferToFormat(uint8_t* dst, const uint8_t* src, SkColorType sr cColorType,
37 int width, int height, int rowBytes, Format form at, 37 int width, int height, int rowBytes, Format form at);
38 bool opt = true /* Use optimization if available */);
39
40 // This typedef defines what the nominal aspects of a compression function
41 // are. The typedef is not meant to be used by clients of the API, but rathe r
42 // allows SIMD optimized compression functions to be implemented.
43 typedef bool (*CompressionProc)(uint8_t* dst, const uint8_t* src,
44 int width, int height, int rowBytes);
45 } 38 }
46 39
47 #endif 40 #endif
OLDNEW
« no previous file with comments | « src/opts/SkTextureCompression_opts_none.cpp ('k') | src/utils/SkTextureCompressor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698