blob: 3f61eb80871bb9c4870cb9beece3fb527ae270cd [file] [log] [blame]
epoger@google.comec3ed6a2011-07-28 14:26:00 +00001
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 */
yangsu@google.com02642762011-06-17 18:31:01 +00008#include "SkView.h"
9#include "SkColor.h"
10#include "SkBitmap.h"
11
12/*
rmistry@google.comd6176b02012-08-23 18:14:13 +000013 * Pipe Reader with File IO. This view reads from the data file produced by the
14 * Pipe Writer.
yangsu@google.com02642762011-06-17 18:31:01 +000015 */
16
17class ReaderView : public SkView {
18public:
19 ReaderView();
20 virtual void draw(SkCanvas* canvas);
rmistry@google.comd6176b02012-08-23 18:14:13 +000021
yangsu@google.com02642762011-06-17 18:31:01 +000022private:
23 int fFilePos;
24 int fFront;
25 int fBack;
26 SkColor fBGColor;
27 SkBitmap fBufferBitmaps[2];
28 typedef SkView INHERITED;
29};