Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: include/gpu/GrContext.h

Issue 26695005: separate state for msaa renderability (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: bool to int Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/effects/SkBitmapAlphaThresholdShader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/effects/SkBitmapAlphaThresholdShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698