epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 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 | */ |
yangsu@google.com | 0264276 | 2011-06-17 18:31:01 +0000 | [diff] [blame] | 8 | #include "SkView.h" |
| 9 | #include "SkColor.h" |
| 10 | #include "SkBitmap.h" |
| 11 | |
| 12 | /* |
rmistry@google.com | d6176b0 | 2012-08-23 18:14:13 +0000 | [diff] [blame] | 13 | * Pipe Reader with File IO. This view reads from the data file produced by the |
| 14 | * Pipe Writer. |
yangsu@google.com | 0264276 | 2011-06-17 18:31:01 +0000 | [diff] [blame] | 15 | */ |
| 16 | |
| 17 | class ReaderView : public SkView { |
| 18 | public: |
| 19 | ReaderView(); |
| 20 | virtual void draw(SkCanvas* canvas); |
rmistry@google.com | d6176b0 | 2012-08-23 18:14:13 +0000 | [diff] [blame] | 21 | |
yangsu@google.com | 0264276 | 2011-06-17 18:31:01 +0000 | [diff] [blame] | 22 | private: |
| 23 | int fFilePos; |
| 24 | int fFront; |
| 25 | int fBack; |
| 26 | SkColor fBGColor; |
| 27 | SkBitmap fBufferBitmaps[2]; |
| 28 | typedef SkView INHERITED; |
| 29 | }; |