yangsu@google.com | 0264276 | 2011-06-17 18:31:01 +0000 | [diff] [blame^] | 1 | #include "SkView.h" |
2 | #include "SkColor.h" | ||||
3 | #include "SkBitmap.h" | ||||
4 | |||||
5 | /* | ||||
6 | * Pipe Reader with File IO. This view reads from the data file produced by the | ||||
7 | * Pipe Writer. | ||||
8 | */ | ||||
9 | |||||
10 | class ReaderView : public SkView { | ||||
11 | public: | ||||
12 | ReaderView(); | ||||
13 | virtual void draw(SkCanvas* canvas); | ||||
14 | |||||
15 | private: | ||||
16 | int fFilePos; | ||||
17 | int fFront; | ||||
18 | int fBack; | ||||
19 | SkColor fBGColor; | ||||
20 | SkBitmap fBufferBitmaps[2]; | ||||
21 | typedef SkView INHERITED; | ||||
22 | }; | ||||
23 |