OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2015 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 #ifndef SkSampler_DEFINED |
| 8 #define SkSampler_DEFINED |
| 9 |
| 10 #include "SkTypes.h" |
| 11 |
| 12 class SkSampler : public SkNoncopyable { |
| 13 public: |
| 14 /** |
| 15 * Update the sampler to sample every sampleX'th pixel. Returns the |
| 16 * width after sampling. |
| 17 */ |
| 18 int setSampleX(int sampleX) { |
| 19 return this->onSetSampleX(sampleX); |
| 20 } |
| 21 |
| 22 virtual ~SkSampler() {} |
| 23 private: |
| 24 virtual int onSetSampleX(int) = 0; |
| 25 }; |
| 26 |
| 27 #endif // SkSampler_DEFINED |
OLD | NEW |