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

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

Issue 433603002: FBFetch refactor + arm support (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix assignment operator Created 6 years, 4 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
« src/gpu/gl/GrGLCaps.cpp ('K') | « src/gpu/gl/GrGLShaderBuilder.cpp ('k') | no next file » | 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 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 "GrGpuGL.h" 9 #include "GrGpuGL.h"
10 #include "GrGLNameAllocator.h" 10 #include "GrGLNameAllocator.h"
(...skipping 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after
1483 return; 1483 return;
1484 } 1484 }
1485 } 1485 }
1486 1486
1487 GrGLRenderTarget* glRT = static_cast<GrGLRenderTarget*>(renderTarget); 1487 GrGLRenderTarget* glRT = static_cast<GrGLRenderTarget*>(renderTarget);
1488 if (renderTarget->getUniqueID() != fHWBoundRenderTargetUniqueID) { 1488 if (renderTarget->getUniqueID() != fHWBoundRenderTargetUniqueID) {
1489 fHWBoundRenderTargetUniqueID = SK_InvalidUniqueID; 1489 fHWBoundRenderTargetUniqueID = SK_InvalidUniqueID;
1490 GL_CALL(BindFramebuffer(GR_GL_FRAMEBUFFER, glRT->renderFBOID())); 1490 GL_CALL(BindFramebuffer(GR_GL_FRAMEBUFFER, glRT->renderFBOID()));
1491 } 1491 }
1492 switch (this->glCaps().invalidateFBType()) { 1492 switch (this->glCaps().invalidateFBType()) {
1493 case GrGLCaps::kNone_FBFetchType: 1493 case GrGLCaps::kNone_InvalidateFBType:
1494 SkFAIL("Should never get here."); 1494 SkFAIL("Should never get here.");
1495 break; 1495 break;
1496 case GrGLCaps::kInvalidate_InvalidateFBType: 1496 case GrGLCaps::kInvalidate_InvalidateFBType:
1497 if (0 == glRT->renderFBOID()) { 1497 if (0 == glRT->renderFBOID()) {
1498 // When rendering to the default framebuffer the legal values f or attachments 1498 // When rendering to the default framebuffer the legal values f or attachments
1499 // are GL_COLOR, GL_DEPTH, GL_STENCIL, ... rather than the vari ous FBO attachment 1499 // are GL_COLOR, GL_DEPTH, GL_STENCIL, ... rather than the vari ous FBO attachment
1500 // types. 1500 // types.
1501 static const GrGLenum attachments[] = { GR_GL_COLOR }; 1501 static const GrGLenum attachments[] = { GR_GL_COLOR };
1502 GL_CALL(InvalidateFramebuffer(GR_GL_FRAMEBUFFER, SK_ARRAY_COUNT( attachments), 1502 GL_CALL(InvalidateFramebuffer(GR_GL_FRAMEBUFFER, SK_ARRAY_COUNT( attachments),
1503 attachments)); 1503 attachments));
(...skipping 1514 matching lines...) Expand 10 before | Expand all | Expand 10 after
3018 this->setVertexArrayID(gpu, 0); 3018 this->setVertexArrayID(gpu, 0);
3019 } 3019 }
3020 int attrCount = gpu->glCaps().maxVertexAttributes(); 3020 int attrCount = gpu->glCaps().maxVertexAttributes();
3021 if (fDefaultVertexArrayAttribState.count() != attrCount) { 3021 if (fDefaultVertexArrayAttribState.count() != attrCount) {
3022 fDefaultVertexArrayAttribState.resize(attrCount); 3022 fDefaultVertexArrayAttribState.resize(attrCount);
3023 } 3023 }
3024 attribState = &fDefaultVertexArrayAttribState; 3024 attribState = &fDefaultVertexArrayAttribState;
3025 } 3025 }
3026 return attribState; 3026 return attribState;
3027 } 3027 }
OLDNEW
« src/gpu/gl/GrGLCaps.cpp ('K') | « src/gpu/gl/GrGLShaderBuilder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698