Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef SkGPipe_DEFINED | 10 #ifndef SkGPipe_DEFINED |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 80 /** | 80 /** |
| 81 * This is called each time some atomic portion of the data has been | 81 * This is called each time some atomic portion of the data has been |
| 82 * written to the block (most recently returned by requestBlock()). | 82 * written to the block (most recently returned by requestBlock()). |
| 83 * If bytes == 0, then the writer has finished. | 83 * If bytes == 0, then the writer has finished. |
| 84 * | 84 * |
| 85 * bytes will always be a multiple of 4. | 85 * bytes will always be a multiple of 4. |
| 86 */ | 86 */ |
| 87 virtual void notifyWritten(size_t bytes) = 0; | 87 virtual void notifyWritten(size_t bytes) = 0; |
| 88 virtual int numberOfReaders() const { return 1; } | 88 virtual int numberOfReaders() const { return 1; } |
| 89 | 89 |
| 90 void resetImageHeap(); | |
|
reed1
2015/06/02 14:35:42
1. lets add some dox
2. can the logically be named
Justin Novosad
2015/06/02 16:50:33
Done.
| |
| 91 | |
| 90 private: | 92 private: |
| 91 friend class SkGPipeWriter; | 93 friend class SkGPipeWriter; |
| 92 void setCanvas(SkGPipeCanvas*); | 94 void setCanvas(SkGPipeCanvas*); |
| 93 | 95 |
| 94 SkGPipeCanvas* fCanvas; | 96 SkGPipeCanvas* fCanvas; |
| 95 }; | 97 }; |
| 96 | 98 |
| 97 class SkGPipeWriter { | 99 class SkGPipeWriter { |
| 98 public: | 100 public: |
| 99 SkGPipeWriter(); | 101 SkGPipeWriter(); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 159 private: | 161 private: |
| 160 enum { | 162 enum { |
| 161 kDefaultRecordingCanvasSize = 32767, | 163 kDefaultRecordingCanvasSize = 32767, |
| 162 }; | 164 }; |
| 163 | 165 |
| 164 SkGPipeCanvas* fCanvas; | 166 SkGPipeCanvas* fCanvas; |
| 165 SkWriter32 fWriter; | 167 SkWriter32 fWriter; |
| 166 }; | 168 }; |
| 167 | 169 |
| 168 #endif | 170 #endif |
| OLD | NEW |