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 #ifndef GrRenderTarget_DEFINED | 8 #ifndef GrRenderTarget_DEFINED |
9 #define GrRenderTarget_DEFINED | 9 #define GrRenderTarget_DEFINED |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 virtual const GrRenderTarget* asRenderTarget() const SK_OVERRIDE { | 42 virtual const GrRenderTarget* asRenderTarget() const SK_OVERRIDE { |
43 return this; | 43 return this; |
44 } | 44 } |
45 | 45 |
46 virtual bool readPixels(int left, int top, int width, int height, | 46 virtual bool readPixels(int left, int top, int width, int height, |
47 GrPixelConfig config, | 47 GrPixelConfig config, |
48 void* buffer, | 48 void* buffer, |
49 size_t rowBytes = 0, | 49 size_t rowBytes = 0, |
50 uint32_t pixelOpsFlags = 0) SK_OVERRIDE; | 50 uint32_t pixelOpsFlags = 0) SK_OVERRIDE; |
51 | 51 |
52 virtual void writePixels(int left, int top, int width, int height, | 52 virtual bool writePixels(int left, int top, int width, int height, |
53 GrPixelConfig config, | 53 GrPixelConfig config, |
54 const void* buffer, | 54 const void* buffer, |
55 size_t rowBytes = 0, | 55 size_t rowBytes = 0, |
56 uint32_t pixelOpsFlags = 0) SK_OVERRIDE; | 56 uint32_t pixelOpsFlags = 0) SK_OVERRIDE; |
57 | 57 |
58 // GrRenderTarget | 58 // GrRenderTarget |
59 /** | 59 /** |
60 * If this RT is multisampled, this is the multisample buffer | 60 * If this RT is multisampled, this is the multisample buffer |
61 * @return the 3D API's handle to this object (e.g. FBO ID in OpenGL) | 61 * @return the 3D API's handle to this object (e.g. FBO ID in OpenGL) |
62 */ | 62 */ |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 168 |
169 GrStencilBuffer* fStencilBuffer; | 169 GrStencilBuffer* fStencilBuffer; |
170 GrTexture* fTexture; // not ref'ed | 170 GrTexture* fTexture; // not ref'ed |
171 | 171 |
172 SkIRect fResolveRect; | 172 SkIRect fResolveRect; |
173 | 173 |
174 typedef GrSurface INHERITED; | 174 typedef GrSurface INHERITED; |
175 }; | 175 }; |
176 | 176 |
177 #endif | 177 #endif |
OLD | NEW |