OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 #ifndef PictureRenderer_DEFINED | 8 #ifndef PictureRenderer_DEFINED |
9 #define PictureRenderer_DEFINED | 9 #define PictureRenderer_DEFINED |
10 | 10 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 virtual void end(); | 140 virtual void end(); |
141 | 141 |
142 /** | 142 /** |
143 * If this PictureRenderer is actually a TiledPictureRender, return a pointe
r to this as a | 143 * If this PictureRenderer is actually a TiledPictureRender, return a pointe
r to this as a |
144 * TiledPictureRender so its methods can be called. | 144 * TiledPictureRender so its methods can be called. |
145 */ | 145 */ |
146 virtual TiledPictureRenderer* getTiledRenderer() { return NULL; } | 146 virtual TiledPictureRenderer* getTiledRenderer() { return NULL; } |
147 | 147 |
148 /** | 148 /** |
149 * Resets the GPU's state. Does nothing if the backing is raster. For a GPU
renderer, calls | 149 * Resets the GPU's state. Does nothing if the backing is raster. For a GPU
renderer, calls |
150 * flush, and calls finish if callFinish is true. | 150 * flush, swapBuffers and, if callFinish is true, finish. |
151 * @param callFinish Whether to call finish. | 151 * @param callFinish Whether to call finish. |
152 */ | 152 */ |
153 void resetState(bool callFinish); | 153 void resetState(bool callFinish); |
154 | 154 |
155 /** | 155 /** |
156 * Remove all decoded textures from the CPU caches and all uploaded textures | 156 * Remove all decoded textures from the CPU caches and all uploaded textures |
157 * from the GPU. | 157 * from the GPU. |
158 */ | 158 */ |
159 void purgeTextures(); | 159 void purgeTextures(); |
160 | 160 |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 | 622 |
623 typedef PictureRenderer INHERITED; | 623 typedef PictureRenderer INHERITED; |
624 }; | 624 }; |
625 | 625 |
626 extern PictureRenderer* CreateGatherPixelRefsRenderer(); | 626 extern PictureRenderer* CreateGatherPixelRefsRenderer(); |
627 extern PictureRenderer* CreatePictureCloneRenderer(); | 627 extern PictureRenderer* CreatePictureCloneRenderer(); |
628 | 628 |
629 } | 629 } |
630 | 630 |
631 #endif // PictureRenderer_DEFINED | 631 #endif // PictureRenderer_DEFINED |
OLD | NEW |