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

Unified Diff: tests/GLProgramsTest.cpp

Issue 12843026: Make GrDrawTarget::Caps ref counted and GrGLCaps derive from it. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« src/gpu/gl/GrGLContext.cpp ('K') | « src/gpu/gl/GrGpuGL.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/GLProgramsTest.cpp
===================================================================
--- tests/GLProgramsTest.cpp (revision 8359)
+++ tests/GLProgramsTest.cpp (working copy)
@@ -36,13 +36,13 @@
fAttribBindings |= random->nextBool() ? GrDrawState::kCoverage_AttribBindingsBit : 0;
#if GR_GL_EXPERIMENTAL_GS
- fExperimentalGS = gpu->getCaps().geometryShaderSupport() && random->nextBool();
+ fExperimentalGS = gpu->caps()->geometryShaderSupport() && random->nextBool();
#endif
bool edgeAA = random->nextBool();
if (edgeAA) {
fAttribBindings |= GrDrawState::kEdge_AttribBindingsBit;
- if (gpu->getCaps().shaderDerivativeSupport()) {
+ if (gpu->caps()->shaderDerivativeSupport()) {
fVertexEdgeType = (GrDrawState::VertexEdgeType)
random->nextULessThan(GrDrawState::kVertexEdgeTypeCnt);
fDiscardIfOutsideEdge = random->nextBool();
@@ -52,7 +52,7 @@
}
}
- if (gpu->getCaps().dualSourceBlendingSupport()) {
+ if (gpu->caps()->dualSourceBlendingSupport()) {
fDualSrcOutput = random->nextULessThan(kDualSrcOutputCnt);
} else {
fDualSrcOutput = kNone_DualSrcOutput;
« src/gpu/gl/GrGLContext.cpp ('K') | « src/gpu/gl/GrGpuGL.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698