mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016 Google Inc. |
| 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 | #include "SkBlitter.h" |
Mike Klein | e902f8d | 2016-10-26 15:32:26 -0400 | [diff] [blame] | 9 | #include "SkBlendModePriv.h" |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 10 | #include "SkColor.h" |
| 11 | #include "SkColorFilter.h" |
Mike Klein | 744908e | 2016-11-11 12:51:36 -0500 | [diff] [blame^] | 12 | #include "SkFixedAlloc.h" |
Mike Klein | baaf8ad | 2016-09-29 09:04:15 -0400 | [diff] [blame] | 13 | #include "SkOpts.h" |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 14 | #include "SkPM4f.h" |
Mike Klein | 744908e | 2016-11-11 12:51:36 -0500 | [diff] [blame^] | 15 | #include "SkPM4fPriv.h" |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 16 | #include "SkRasterPipeline.h" |
| 17 | #include "SkShader.h" |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 18 | #include "SkXfermode.h" |
| 19 | |
| 20 | |
| 21 | class SkRasterPipelineBlitter : public SkBlitter { |
| 22 | public: |
| 23 | static SkBlitter* Create(const SkPixmap&, const SkPaint&, SkTBlitterAllocator*); |
| 24 | |
mtklein | a4a4488 | 2016-11-04 13:20:07 -0700 | [diff] [blame] | 25 | SkRasterPipelineBlitter(SkPixmap dst, SkBlendMode blend, SkPM4f paintColor) |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 26 | : fDst(dst) |
Mike Klein | e902f8d | 2016-10-26 15:32:26 -0400 | [diff] [blame] | 27 | , fBlend(blend) |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 28 | , fPaintColor(paintColor) |
Mike Klein | 744908e | 2016-11-11 12:51:36 -0500 | [diff] [blame^] | 29 | , fScratchAlloc(fScratch, sizeof(fScratch)) |
| 30 | , fScratchFallback(&fScratchAlloc) |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 31 | {} |
| 32 | |
| 33 | void blitH (int x, int y, int w) override; |
| 34 | void blitAntiH(int x, int y, const SkAlpha[], const int16_t[]) override; |
| 35 | void blitMask (const SkMask&, const SkIRect& clip) override; |
| 36 | |
| 37 | // TODO: The default implementations of the other blits look fine, |
| 38 | // but some of them like blitV could probably benefit from custom |
| 39 | // blits using something like a SkRasterPipeline::runFew() method. |
| 40 | |
| 41 | private: |
Mike Klein | e902f8d | 2016-10-26 15:32:26 -0400 | [diff] [blame] | 42 | void append_load_d(SkRasterPipeline*) const; |
| 43 | void append_store (SkRasterPipeline*) const; |
| 44 | void append_blend (SkRasterPipeline*) const; |
Mike Klein | 130863e | 2016-10-27 11:29:36 -0400 | [diff] [blame] | 45 | void maybe_clamp (SkRasterPipeline*) const; |
mtklein | 8e4373f | 2016-07-22 14:20:27 -0700 | [diff] [blame] | 46 | |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 47 | SkPixmap fDst; |
Mike Klein | e902f8d | 2016-10-26 15:32:26 -0400 | [diff] [blame] | 48 | SkBlendMode fBlend; |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 49 | SkPM4f fPaintColor; |
mtklein | a4a4488 | 2016-11-04 13:20:07 -0700 | [diff] [blame] | 50 | SkRasterPipeline fShader; |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 51 | |
Mike Klein | bd3fe47 | 2016-10-25 15:43:46 -0400 | [diff] [blame] | 52 | // These functions are compiled lazily when first used. |
| 53 | std::function<void(size_t, size_t)> fBlitH = nullptr, |
| 54 | fBlitAntiH = nullptr, |
| 55 | fBlitMaskA8 = nullptr, |
| 56 | fBlitMaskLCD16 = nullptr; |
| 57 | |
| 58 | // These values are pointed to by the compiled blit functions |
| 59 | // above, which allows us to adjust them from call to call. |
| 60 | void* fDstPtr = nullptr; |
| 61 | const void* fMaskPtr = nullptr; |
| 62 | float fConstantCoverage = 0.0f; |
| 63 | |
Mike Klein | 744908e | 2016-11-11 12:51:36 -0500 | [diff] [blame^] | 64 | // Scratch space for shaders and color filters to use. |
| 65 | char fScratch[64]; |
| 66 | SkFixedAlloc fScratchAlloc; |
| 67 | SkFallbackAlloc fScratchFallback; |
| 68 | |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 69 | typedef SkBlitter INHERITED; |
| 70 | }; |
| 71 | |
| 72 | SkBlitter* SkCreateRasterPipelineBlitter(const SkPixmap& dst, |
| 73 | const SkPaint& paint, |
| 74 | SkTBlitterAllocator* alloc) { |
| 75 | return SkRasterPipelineBlitter::Create(dst, paint, alloc); |
| 76 | } |
| 77 | |
mtklein | 8e4373f | 2016-07-22 14:20:27 -0700 | [diff] [blame] | 78 | static bool supported(const SkImageInfo& info) { |
mtklein | 8e4373f | 2016-07-22 14:20:27 -0700 | [diff] [blame] | 79 | switch (info.colorType()) { |
mtklein | 4e90e3e | 2016-07-25 14:35:31 -0700 | [diff] [blame] | 80 | case kN32_SkColorType: return info.gammaCloseToSRGB(); |
| 81 | case kRGBA_F16_SkColorType: return true; |
| 82 | case kRGB_565_SkColorType: return true; |
| 83 | default: return false; |
mtklein | 8e4373f | 2016-07-22 14:20:27 -0700 | [diff] [blame] | 84 | } |
| 85 | } |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 86 | |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 87 | SkBlitter* SkRasterPipelineBlitter::Create(const SkPixmap& dst, |
| 88 | const SkPaint& paint, |
| 89 | SkTBlitterAllocator* alloc) { |
Mike Klein | 744908e | 2016-11-11 12:51:36 -0500 | [diff] [blame^] | 90 | auto blitter = alloc->createT<SkRasterPipelineBlitter>( |
| 91 | dst, |
| 92 | paint.getBlendMode(), |
| 93 | SkPM4f_from_SkColor(paint.getColor(), dst.colorSpace())); |
| 94 | |
Mike Klein | f98b730 | 2016-11-06 10:18:06 -0500 | [diff] [blame] | 95 | auto earlyOut = [&] { |
mtklein | 7c59116 | 2016-11-09 14:50:31 -0800 | [diff] [blame] | 96 | blitter->~SkRasterPipelineBlitter(); |
| 97 | alloc->freeLast(); |
Mike Klein | f98b730 | 2016-11-06 10:18:06 -0500 | [diff] [blame] | 98 | return nullptr; |
| 99 | }; |
| 100 | |
mtklein | a4a4488 | 2016-11-04 13:20:07 -0700 | [diff] [blame] | 101 | SkBlendMode* blend = &blitter->fBlend; |
| 102 | SkPM4f* paintColor = &blitter->fPaintColor; |
| 103 | SkRasterPipeline* pipeline = &blitter->fShader; |
| 104 | |
| 105 | SkShader* shader = paint.getShader(); |
| 106 | SkColorFilter* colorFilter = paint.getColorFilter(); |
| 107 | |
| 108 | // TODO: all temporary |
| 109 | if (!supported(dst.info()) || shader || !SkBlendMode_AppendStages(*blend)) { |
Mike Klein | f98b730 | 2016-11-06 10:18:06 -0500 | [diff] [blame] | 110 | return earlyOut(); |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 111 | } |
mtklein | a4a4488 | 2016-11-04 13:20:07 -0700 | [diff] [blame] | 112 | |
| 113 | bool is_opaque, is_constant; |
| 114 | if (shader) { |
| 115 | is_opaque = shader->isOpaque(); |
| 116 | is_constant = false; // TODO: shader->isConstant() |
| 117 | // TODO: append shader stages, of course! |
| 118 | } else { |
| 119 | is_opaque = paintColor->a() == 1.0f; |
| 120 | is_constant = true; |
| 121 | pipeline->append(SkRasterPipeline::constant_color, paintColor); |
Mike Klein | e902f8d | 2016-10-26 15:32:26 -0400 | [diff] [blame] | 122 | } |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 123 | |
mtklein | a4a4488 | 2016-11-04 13:20:07 -0700 | [diff] [blame] | 124 | if (colorFilter) { |
Mike Klein | 744908e | 2016-11-11 12:51:36 -0500 | [diff] [blame^] | 125 | if (!colorFilter->appendStages(pipeline, dst.colorSpace(), &blitter->fScratchFallback, |
| 126 | is_opaque)) { |
Mike Klein | f98b730 | 2016-11-06 10:18:06 -0500 | [diff] [blame] | 127 | return earlyOut(); |
Mike Klein | 6686617 | 2016-11-03 12:22:01 -0400 | [diff] [blame] | 128 | } |
mtklein | a4a4488 | 2016-11-04 13:20:07 -0700 | [diff] [blame] | 129 | is_opaque = is_opaque && (colorFilter->getFlags() & SkColorFilter::kAlphaUnchanged_Flag); |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 130 | } |
| 131 | |
mtklein | a4a4488 | 2016-11-04 13:20:07 -0700 | [diff] [blame] | 132 | if (is_constant) { |
| 133 | pipeline->append(SkRasterPipeline::store_f32, &paintColor); |
| 134 | pipeline->compile()(0,1); |
| 135 | |
| 136 | *pipeline = SkRasterPipeline(); |
| 137 | pipeline->append(SkRasterPipeline::constant_color, paintColor); |
| 138 | |
| 139 | is_opaque = paintColor->a() == 1.0f; |
Mike Klein | 6686617 | 2016-11-03 12:22:01 -0400 | [diff] [blame] | 140 | } |
mtklein | 8e4373f | 2016-07-22 14:20:27 -0700 | [diff] [blame] | 141 | |
mtklein | a4a4488 | 2016-11-04 13:20:07 -0700 | [diff] [blame] | 142 | if (is_opaque && *blend == SkBlendMode::kSrcOver) { |
| 143 | *blend = SkBlendMode::kSrc; |
mtklein | 8e4373f | 2016-07-22 14:20:27 -0700 | [diff] [blame] | 144 | } |
| 145 | |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 146 | return blitter; |
| 147 | } |
| 148 | |
Mike Klein | e902f8d | 2016-10-26 15:32:26 -0400 | [diff] [blame] | 149 | void SkRasterPipelineBlitter::append_load_d(SkRasterPipeline* p) const { |
mtklein | 8e4373f | 2016-07-22 14:20:27 -0700 | [diff] [blame] | 150 | SkASSERT(supported(fDst.info())); |
| 151 | |
| 152 | switch (fDst.info().colorType()) { |
| 153 | case kN32_SkColorType: |
| 154 | if (fDst.info().gammaCloseToSRGB()) { |
Mike Klein | e902f8d | 2016-10-26 15:32:26 -0400 | [diff] [blame] | 155 | p->append(SkRasterPipeline::load_d_srgb, &fDstPtr); |
mtklein | 8e4373f | 2016-07-22 14:20:27 -0700 | [diff] [blame] | 156 | } |
| 157 | break; |
mtklein | 4e90e3e | 2016-07-25 14:35:31 -0700 | [diff] [blame] | 158 | case kRGBA_F16_SkColorType: |
Mike Klein | e902f8d | 2016-10-26 15:32:26 -0400 | [diff] [blame] | 159 | p->append(SkRasterPipeline::load_d_f16, &fDstPtr); |
mtklein | 4e90e3e | 2016-07-25 14:35:31 -0700 | [diff] [blame] | 160 | break; |
mtklein | 8e4373f | 2016-07-22 14:20:27 -0700 | [diff] [blame] | 161 | case kRGB_565_SkColorType: |
Mike Klein | e902f8d | 2016-10-26 15:32:26 -0400 | [diff] [blame] | 162 | p->append(SkRasterPipeline::load_d_565, &fDstPtr); |
mtklein | 8e4373f | 2016-07-22 14:20:27 -0700 | [diff] [blame] | 163 | break; |
| 164 | default: break; |
| 165 | } |
| 166 | } |
| 167 | |
Mike Klein | e902f8d | 2016-10-26 15:32:26 -0400 | [diff] [blame] | 168 | void SkRasterPipelineBlitter::append_store(SkRasterPipeline* p) const { |
mtklein | 8e4373f | 2016-07-22 14:20:27 -0700 | [diff] [blame] | 169 | SkASSERT(supported(fDst.info())); |
| 170 | |
| 171 | switch (fDst.info().colorType()) { |
| 172 | case kN32_SkColorType: |
| 173 | if (fDst.info().gammaCloseToSRGB()) { |
Mike Klein | e902f8d | 2016-10-26 15:32:26 -0400 | [diff] [blame] | 174 | p->append(SkRasterPipeline::store_srgb, &fDstPtr); |
mtklein | 8e4373f | 2016-07-22 14:20:27 -0700 | [diff] [blame] | 175 | } |
| 176 | break; |
mtklein | 4e90e3e | 2016-07-25 14:35:31 -0700 | [diff] [blame] | 177 | case kRGBA_F16_SkColorType: |
Mike Klein | e902f8d | 2016-10-26 15:32:26 -0400 | [diff] [blame] | 178 | p->append(SkRasterPipeline::store_f16, &fDstPtr); |
mtklein | 4e90e3e | 2016-07-25 14:35:31 -0700 | [diff] [blame] | 179 | break; |
mtklein | 8e4373f | 2016-07-22 14:20:27 -0700 | [diff] [blame] | 180 | case kRGB_565_SkColorType: |
Mike Klein | e902f8d | 2016-10-26 15:32:26 -0400 | [diff] [blame] | 181 | p->append(SkRasterPipeline::store_565, &fDstPtr); |
mtklein | 8e4373f | 2016-07-22 14:20:27 -0700 | [diff] [blame] | 182 | break; |
| 183 | default: break; |
| 184 | } |
| 185 | } |
| 186 | |
Mike Klein | e902f8d | 2016-10-26 15:32:26 -0400 | [diff] [blame] | 187 | void SkRasterPipelineBlitter::append_blend(SkRasterPipeline* p) const { |
| 188 | SkAssertResult(SkBlendMode_AppendStages(fBlend, p)); |
| 189 | } |
Mike Klein | e9f74b8 | 2016-10-25 13:31:21 -0400 | [diff] [blame] | 190 | |
Mike Klein | 130863e | 2016-10-27 11:29:36 -0400 | [diff] [blame] | 191 | void SkRasterPipelineBlitter::maybe_clamp(SkRasterPipeline* p) const { |
Mike Klein | eea7c16 | 2016-11-03 10:20:35 -0400 | [diff] [blame] | 192 | if (SkBlendMode_CanOverflow(fBlend)) { p->append(SkRasterPipeline::clamp_a); } |
Mike Klein | 130863e | 2016-10-27 11:29:36 -0400 | [diff] [blame] | 193 | } |
| 194 | |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 195 | void SkRasterPipelineBlitter::blitH(int x, int y, int w) { |
Mike Klein | bd3fe47 | 2016-10-25 15:43:46 -0400 | [diff] [blame] | 196 | if (!fBlitH) { |
| 197 | SkRasterPipeline p; |
| 198 | p.extend(fShader); |
Mike Klein | 6686617 | 2016-11-03 12:22:01 -0400 | [diff] [blame] | 199 | if (fBlend != SkBlendMode::kSrc) { |
| 200 | this->append_load_d(&p); |
| 201 | this->append_blend(&p); |
| 202 | this->maybe_clamp(&p); |
| 203 | } |
Mike Klein | e902f8d | 2016-10-26 15:32:26 -0400 | [diff] [blame] | 204 | this->append_store(&p); |
Mike Klein | bd3fe47 | 2016-10-25 15:43:46 -0400 | [diff] [blame] | 205 | fBlitH = p.compile(); |
| 206 | } |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 207 | |
Mike Klein | bd3fe47 | 2016-10-25 15:43:46 -0400 | [diff] [blame] | 208 | fDstPtr = fDst.writable_addr(0,y); |
| 209 | fBlitH(x,w); |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 210 | } |
| 211 | |
| 212 | void SkRasterPipelineBlitter::blitAntiH(int x, int y, const SkAlpha aa[], const int16_t runs[]) { |
Mike Klein | bd3fe47 | 2016-10-25 15:43:46 -0400 | [diff] [blame] | 213 | if (!fBlitAntiH) { |
| 214 | SkRasterPipeline p; |
| 215 | p.extend(fShader); |
Mike Klein | 6686617 | 2016-11-03 12:22:01 -0400 | [diff] [blame] | 216 | if (fBlend == SkBlendMode::kSrcOver) { |
| 217 | p.append(SkRasterPipeline::scale_constant_float, &fConstantCoverage); |
| 218 | this->append_load_d(&p); |
| 219 | this->append_blend(&p); |
| 220 | } else { |
| 221 | this->append_load_d(&p); |
| 222 | this->append_blend(&p); |
| 223 | p.append(SkRasterPipeline::lerp_constant_float, &fConstantCoverage); |
| 224 | } |
Mike Klein | 130863e | 2016-10-27 11:29:36 -0400 | [diff] [blame] | 225 | this->maybe_clamp(&p); |
Mike Klein | e902f8d | 2016-10-26 15:32:26 -0400 | [diff] [blame] | 226 | this->append_store(&p); |
Mike Klein | bd3fe47 | 2016-10-25 15:43:46 -0400 | [diff] [blame] | 227 | fBlitAntiH = p.compile(); |
| 228 | } |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 229 | |
Mike Klein | bd3fe47 | 2016-10-25 15:43:46 -0400 | [diff] [blame] | 230 | fDstPtr = fDst.writable_addr(0,y); |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 231 | for (int16_t run = *runs; run > 0; run = *runs) { |
Mike Klein | aeb7959 | 2016-11-07 09:29:07 -0500 | [diff] [blame] | 232 | switch (*aa) { |
| 233 | case 0x00: break; |
| 234 | case 0xff: this->blitH(x,y,run); break; |
| 235 | default: |
| 236 | fConstantCoverage = *aa * (1/255.0f); |
| 237 | fBlitAntiH(x, run); |
| 238 | } |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 239 | x += run; |
| 240 | runs += run; |
| 241 | aa += run; |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | void SkRasterPipelineBlitter::blitMask(const SkMask& mask, const SkIRect& clip) { |
| 246 | if (mask.fFormat == SkMask::kBW_Format) { |
| 247 | // TODO: native BW masks? |
| 248 | return INHERITED::blitMask(mask, clip); |
| 249 | } |
| 250 | |
Mike Klein | bd3fe47 | 2016-10-25 15:43:46 -0400 | [diff] [blame] | 251 | if (mask.fFormat == SkMask::kA8_Format && !fBlitMaskA8) { |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 252 | SkRasterPipeline p; |
| 253 | p.extend(fShader); |
Mike Klein | 6686617 | 2016-11-03 12:22:01 -0400 | [diff] [blame] | 254 | if (fBlend == SkBlendMode::kSrcOver) { |
| 255 | p.append(SkRasterPipeline::scale_u8, &fMaskPtr); |
| 256 | this->append_load_d(&p); |
| 257 | this->append_blend(&p); |
| 258 | } else { |
| 259 | this->append_load_d(&p); |
| 260 | this->append_blend(&p); |
| 261 | p.append(SkRasterPipeline::lerp_u8, &fMaskPtr); |
| 262 | } |
Mike Klein | 130863e | 2016-10-27 11:29:36 -0400 | [diff] [blame] | 263 | this->maybe_clamp(&p); |
Mike Klein | e902f8d | 2016-10-26 15:32:26 -0400 | [diff] [blame] | 264 | this->append_store(&p); |
Mike Klein | bd3fe47 | 2016-10-25 15:43:46 -0400 | [diff] [blame] | 265 | fBlitMaskA8 = p.compile(); |
| 266 | } |
| 267 | |
| 268 | if (mask.fFormat == SkMask::kLCD16_Format && !fBlitMaskLCD16) { |
| 269 | SkRasterPipeline p; |
| 270 | p.extend(fShader); |
Mike Klein | e902f8d | 2016-10-26 15:32:26 -0400 | [diff] [blame] | 271 | this->append_load_d(&p); |
| 272 | this->append_blend(&p); |
Mike Klein | bd3fe47 | 2016-10-25 15:43:46 -0400 | [diff] [blame] | 273 | p.append(SkRasterPipeline::lerp_565, &fMaskPtr); |
Mike Klein | 130863e | 2016-10-27 11:29:36 -0400 | [diff] [blame] | 274 | this->maybe_clamp(&p); |
Mike Klein | e902f8d | 2016-10-26 15:32:26 -0400 | [diff] [blame] | 275 | this->append_store(&p); |
Mike Klein | bd3fe47 | 2016-10-25 15:43:46 -0400 | [diff] [blame] | 276 | fBlitMaskLCD16 = p.compile(); |
| 277 | } |
| 278 | |
| 279 | int x = clip.left(); |
| 280 | for (int y = clip.top(); y < clip.bottom(); y++) { |
| 281 | fDstPtr = fDst.writable_addr(0,y); |
| 282 | |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 283 | switch (mask.fFormat) { |
| 284 | case SkMask::kA8_Format: |
Mike Klein | bd3fe47 | 2016-10-25 15:43:46 -0400 | [diff] [blame] | 285 | fMaskPtr = mask.getAddr8(x,y)-x; |
| 286 | fBlitMaskA8(x, clip.width()); |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 287 | break; |
| 288 | case SkMask::kLCD16_Format: |
Mike Klein | bd3fe47 | 2016-10-25 15:43:46 -0400 | [diff] [blame] | 289 | fMaskPtr = mask.getAddrLCD16(x,y)-x; |
| 290 | fBlitMaskLCD16(x, clip.width()); |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 291 | break; |
Mike Klein | bd3fe47 | 2016-10-25 15:43:46 -0400 | [diff] [blame] | 292 | default: |
| 293 | // TODO |
| 294 | break; |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 295 | } |
mtklein | 9a5c47f | 2016-07-22 11:05:04 -0700 | [diff] [blame] | 296 | } |
| 297 | } |