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

Side by Side Diff: src/gpu/gl/GrGLGpu.cpp

Issue 885923002: Move DstCopy on gpu into the GrXferProcessor. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Some clean up Created 5 years, 10 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
OLDNEW
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 8
9 #include "GrGLGpu.h" 9 #include "GrGLGpu.h"
10 #include "GrGLStencilBuffer.h" 10 #include "GrGLStencilBuffer.h"
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after
1433 reinterpret_cast<GrGLvoid*>(vertexOffsetInBytes + o ffset)); 1433 reinterpret_cast<GrGLvoid*>(vertexOffsetInBytes + o ffset));
1434 offset += attrib.fOffset; 1434 offset += attrib.fOffset;
1435 } 1435 }
1436 attribState->disableUnusedArrays(this, usedAttribArraysMask); 1436 attribState->disableUnusedArrays(this, usedAttribArraysMask);
1437 } 1437 }
1438 } 1438 }
1439 1439
1440 void GrGLGpu::buildProgramDesc(GrProgramDesc* desc, 1440 void GrGLGpu::buildProgramDesc(GrProgramDesc* desc,
1441 const GrPrimitiveProcessor& primProc, 1441 const GrPrimitiveProcessor& primProc,
1442 const GrPipeline& pipeline, 1442 const GrPipeline& pipeline,
1443 const GrProgramDesc::DescInfo& descInfo,
1444 const GrBatchTracker& batchTracker) const { 1443 const GrBatchTracker& batchTracker) const {
1445 if (!GrGLProgramDescBuilder::Build(desc, primProc, pipeline, descInfo, this, 1444 if (!GrGLProgramDescBuilder::Build(desc, primProc, pipeline, this, batchTrac ker)) {
1446 batchTracker)) {
1447 SkDEBUGFAIL("Failed to generate GL program descriptor"); 1445 SkDEBUGFAIL("Failed to generate GL program descriptor");
1448 } 1446 }
1449 } 1447 }
1450 1448
1451 void GrGLGpu::disableScissor() { 1449 void GrGLGpu::disableScissor() {
1452 if (kNo_TriState != fHWScissorSettings.fEnabled) { 1450 if (kNo_TriState != fHWScissorSettings.fEnabled) {
1453 GL_CALL(Disable(GR_GL_SCISSOR_TEST)); 1451 GL_CALL(Disable(GR_GL_SCISSOR_TEST));
1454 fHWScissorSettings.fEnabled = kNo_TriState; 1452 fHWScissorSettings.fEnabled = kNo_TriState;
1455 return; 1453 return;
1456 } 1454 }
(...skipping 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after
2750 this->setVertexArrayID(gpu, 0); 2748 this->setVertexArrayID(gpu, 0);
2751 } 2749 }
2752 int attrCount = gpu->glCaps().maxVertexAttributes(); 2750 int attrCount = gpu->glCaps().maxVertexAttributes();
2753 if (fDefaultVertexArrayAttribState.count() != attrCount) { 2751 if (fDefaultVertexArrayAttribState.count() != attrCount) {
2754 fDefaultVertexArrayAttribState.resize(attrCount); 2752 fDefaultVertexArrayAttribState.resize(attrCount);
2755 } 2753 }
2756 attribState = &fDefaultVertexArrayAttribState; 2754 attribState = &fDefaultVertexArrayAttribState;
2757 } 2755 }
2758 return attribState; 2756 return attribState;
2759 } 2757 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698