OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 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 GrContext_DEFINED | 8 #ifndef GrContext_DEFINED |
9 #define GrContext_DEFINED | 9 #define GrContext_DEFINED |
10 | 10 |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 * @return the currently bound render target. | 279 * @return the currently bound render target. |
280 */ | 280 */ |
281 const GrRenderTarget* getRenderTarget() const { return fRenderTarget.get();
} | 281 const GrRenderTarget* getRenderTarget() const { return fRenderTarget.get();
} |
282 GrRenderTarget* getRenderTarget() { return fRenderTarget.get(); } | 282 GrRenderTarget* getRenderTarget() { return fRenderTarget.get(); } |
283 | 283 |
284 GrAARectRenderer* getAARectRenderer() { return fAARectRenderer; } | 284 GrAARectRenderer* getAARectRenderer() { return fAARectRenderer; } |
285 | 285 |
286 /** | 286 /** |
287 * Can the provided configuration act as a color render target? | 287 * Can the provided configuration act as a color render target? |
288 */ | 288 */ |
289 bool isConfigRenderable(GrPixelConfig config) const; | 289 bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const; |
290 | 290 |
291 /** | 291 /** |
292 * Return the max width or height of a render target supported by the | 292 * Return the max width or height of a render target supported by the |
293 * current GPU. | 293 * current GPU. |
294 */ | 294 */ |
295 int getMaxRenderTargetSize() const; | 295 int getMaxRenderTargetSize() const; |
296 | 296 |
297 /** | 297 /** |
298 * Returns the max sample count for a render target. It will be 0 if MSAA | 298 * Returns the max sample count for a render target. It will be 0 if MSAA |
299 * is not supported. | 299 * is not supported. |
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1025 } | 1025 } |
1026 | 1026 |
1027 GrTexture* texture() { return fTexture; } | 1027 GrTexture* texture() { return fTexture; } |
1028 | 1028 |
1029 private: | 1029 private: |
1030 GrContext* fContext; | 1030 GrContext* fContext; |
1031 GrTexture* fTexture; | 1031 GrTexture* fTexture; |
1032 }; | 1032 }; |
1033 | 1033 |
1034 #endif | 1034 #endif |
OLD | NEW |