| * Copyright 2011 Google Inc. |
| * Use of this source code is governed by a BSD-style license that can be |
| * found in the LICENSE file. |
| #ifndef SkNetPipeController_DEFINED |
| #define SkNetPipeController_DEFINED |
| class SkNetPipeController : public SkGPipeController { |
| SkNetPipeController(SkCanvas* target); |
| virtual void* requestBlock(size_t minRequest, size_t* actual); |
| virtual void notifyWritten(size_t bytes); |
| int writeToSocket(SkSocket* sockfd, SkSocket::DataType type); |
| void enablePlayback() { fPlayback = true; } |
| void disablePlayback() { fPlayback = false; } |
| SkGPipeReader::Status fStatus; |