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

Side by Side Diff: src/gpu/GrDrawTarget.cpp

Issue 12379052: Remove constructors from GrVertexAttrib (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 10
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 527
528 void GrDrawTarget::drawRect(const GrRect& rect, 528 void GrDrawTarget::drawRect(const GrRect& rect,
529 const SkMatrix* matrix, 529 const SkMatrix* matrix,
530 const GrRect* srcRect, 530 const GrRect* srcRect,
531 const SkMatrix* srcMatrix, 531 const SkMatrix* srcMatrix,
532 int stage) { 532 int stage) {
533 GrAttribBindings bindings = 0; 533 GrAttribBindings bindings = 0;
534 uint32_t explicitCoordMask = 0; 534 uint32_t explicitCoordMask = 0;
535 // position + (optional) texture coord 535 // position + (optional) texture coord
536 static const GrVertexAttrib kAttribs[] = { 536 static const GrVertexAttrib kAttribs[] = {
537 GrVertexAttrib(kVec2f_GrVertexAttribType, 0), 537 {kVec2f_GrVertexAttribType, 0},
538 GrVertexAttrib(kVec2f_GrVertexAttribType, sizeof(GrPoint)) 538 {kVec2f_GrVertexAttribType, sizeof(GrPoint)}
539 }; 539 };
540 int attribCount = 1; 540 int attribCount = 1;
541 541
542 if (NULL != srcRect) { 542 if (NULL != srcRect) {
543 bindings |= GrDrawState::ExplicitTexCoordAttribBindingsBit(stage); 543 bindings |= GrDrawState::ExplicitTexCoordAttribBindingsBit(stage);
544 attribCount = 2; 544 attribCount = 2;
545 this->drawState()->setAttribIndex(GrDrawState::kTexCoord_AttribIndex, 1) ; 545 this->drawState()->setAttribIndex(GrDrawState::kTexCoord_AttribIndex, 1) ;
546 explicitCoordMask = (1 << stage); 546 explicitCoordMask = (1 << stage);
547 } 547 }
548 548
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 GrPrintf("HW AA Lines Support : %s\n", gNY[fInternals.fHWAALineSuppo rt]); 687 GrPrintf("HW AA Lines Support : %s\n", gNY[fInternals.fHWAALineSuppo rt]);
688 GrPrintf("Shader Derivative Support : %s\n", gNY[fInternals.fShaderDerivat iveSupport]); 688 GrPrintf("Shader Derivative Support : %s\n", gNY[fInternals.fShaderDerivat iveSupport]);
689 GrPrintf("Geometry Shader Support : %s\n", gNY[fInternals.fGeometryShade rSupport]); 689 GrPrintf("Geometry Shader Support : %s\n", gNY[fInternals.fGeometryShade rSupport]);
690 GrPrintf("FSAA Support : %s\n", gNY[fInternals.fFSAASupport]) ; 690 GrPrintf("FSAA Support : %s\n", gNY[fInternals.fFSAASupport]) ;
691 GrPrintf("Dual Source Blending Support: %s\n", gNY[fInternals.fDualSourceBle ndingSupport]); 691 GrPrintf("Dual Source Blending Support: %s\n", gNY[fInternals.fDualSourceBle ndingSupport]);
692 GrPrintf("Buffer Lock Support : %s\n", gNY[fInternals.fBufferLockSup port]); 692 GrPrintf("Buffer Lock Support : %s\n", gNY[fInternals.fBufferLockSup port]);
693 GrPrintf("Path Stenciling Support : %s\n", gNY[fInternals.fPathStencilin gSupport]); 693 GrPrintf("Path Stenciling Support : %s\n", gNY[fInternals.fPathStencilin gSupport]);
694 GrPrintf("Max Texture Size : %d\n", fInternals.fMaxTextureSize); 694 GrPrintf("Max Texture Size : %d\n", fInternals.fMaxTextureSize);
695 GrPrintf("Max Render Target Size : %d\n", fInternals.fMaxRenderTargetSi ze); 695 GrPrintf("Max Render Target Size : %d\n", fInternals.fMaxRenderTargetSi ze);
696 } 696 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698