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

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

Issue 1594483003: Texturing support for RECTANGLE textures. (Closed) Base URL: https://skia.googlesource.com/skia.git@rectangle
Patch Set: fix float->int warnings Created 4 years, 11 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
« no previous file with comments | « src/gpu/gl/GrGLGpu.h ('k') | src/gpu/gl/SkGLContext.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 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 "GrGLGLSL.h" 10 #include "GrGLGLSL.h"
(...skipping 3473 matching lines...) Expand 10 before | Expand all | Expand 10 after
3484 this->setVertexArrayID(gpu, 0); 3484 this->setVertexArrayID(gpu, 0);
3485 } 3485 }
3486 int attrCount = gpu->glCaps().maxVertexAttributes(); 3486 int attrCount = gpu->glCaps().maxVertexAttributes();
3487 if (fDefaultVertexArrayAttribState.count() != attrCount) { 3487 if (fDefaultVertexArrayAttribState.count() != attrCount) {
3488 fDefaultVertexArrayAttribState.resize(attrCount); 3488 fDefaultVertexArrayAttribState.resize(attrCount);
3489 } 3489 }
3490 attribState = &fDefaultVertexArrayAttribState; 3490 attribState = &fDefaultVertexArrayAttribState;
3491 } 3491 }
3492 return attribState; 3492 return attribState;
3493 } 3493 }
3494
3495 bool GrGLGpu::onMakeCopyForTextureParams(GrTexture* texture, const GrTexturePara ms& textureParams,
3496 GrTextureProducer::CopyParams* copyPara ms) const {
3497 if (textureParams.isTiled() ||
3498 GrTextureParams::kMipMap_FilterMode == textureParams.filterMode()) {
3499 GrGLTexture* glTexture = static_cast<GrGLTexture*>(texture);
3500 if (GR_GL_TEXTURE_EXTERNAL == glTexture->target() ||
3501 GR_GL_TEXTURE_RECTANGLE == glTexture->target()) {
3502 copyParams->fFilter = GrTextureParams::kNone_FilterMode;
3503 copyParams->fWidth = texture->width();
3504 copyParams->fHeight = texture->height();
3505 return true;
3506 }
3507 }
3508 return false;
3509 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLGpu.h ('k') | src/gpu/gl/SkGLContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698