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

Side by Side Diff: src/codec/SkSampler.h

Issue 1372973002: Move all knowledge of X sampling into SkScaledCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@codecSDmerge
Patch Set: Fix ico, sampling Created 5 years, 2 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
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698