1
2/*
3 * Copyright 2011 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8#include "SkView.h"
9#include "SkColor.h"
10#include "SkBitmap.h"
11
12/*
13 * Pipe Reader with File IO. This view reads from the data file produced by the
14 * Pipe Writer.
15 */
16
17class ReaderView : public SkView {
18public:
19    ReaderView();
20    virtual void draw(SkCanvas* canvas);
21
22private:
23    int     fFilePos;
24    int     fFront;
25    int     fBack;
26    SkColor fBGColor;
27    SkBitmap fBufferBitmaps[2];
28    typedef SkView INHERITED;
29};
30