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

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

Issue 427693002: Add function for creating ASTC blitter (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Naming conventions 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 | « no previous file | src/utils/SkTextureCompressor_ASTC.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 #include "SkTextureCompressor.h" 8 #include "SkTextureCompressor.h"
9 #include "SkTextureCompressor_ASTC.h" 9 #include "SkTextureCompressor_ASTC.h"
10 #include "SkTextureCompressor_LATC.h" 10 #include "SkTextureCompressor_LATC.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 } 115 }
116 116
117 SkBlitter* CreateBlitterForFormat(int width, int height, void* compressedBuffer, Format format) { 117 SkBlitter* CreateBlitterForFormat(int width, int height, void* compressedBuffer, Format format) {
118 switch(format) { 118 switch(format) {
119 case kLATC_Format: 119 case kLATC_Format:
120 return CreateLATCBlitter(width, height, compressedBuffer); 120 return CreateLATCBlitter(width, height, compressedBuffer);
121 121
122 case kR11_EAC_Format: 122 case kR11_EAC_Format:
123 return CreateR11EACBlitter(width, height, compressedBuffer); 123 return CreateR11EACBlitter(width, height, compressedBuffer);
124 124
125 case kASTC_12x12_Format:
126 return CreateASTCBlitter(width, height, compressedBuffer);
127
125 default: 128 default:
126 return NULL; 129 return NULL;
127 } 130 }
128 131
129 return NULL; 132 return NULL;
130 } 133 }
131 134
132 } // namespace SkTextureCompressor 135 } // namespace SkTextureCompressor
OLDNEW
« no previous file with comments | « no previous file | src/utils/SkTextureCompressor_ASTC.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698