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

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

Issue 1413973002: Modifications to get 'blaze build -c opt //third_party/skia/HEAD/...' to work. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 2 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/GrContext.cpp ('k') | tests/MatrixTest.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 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 SkASSERT(!GrPixelConfigIsCompressed(dataConfig)); 618 SkASSERT(!GrPixelConfigIsCompressed(dataConfig));
619 619
620 size_t bpp = GrBytesPerPixel(dataConfig); 620 size_t bpp = GrBytesPerPixel(dataConfig);
621 if (!GrSurfacePriv::AdjustWritePixelParams(desc.fWidth, desc.fHeight, bpp, & left, &top, 621 if (!GrSurfacePriv::AdjustWritePixelParams(desc.fWidth, desc.fHeight, bpp, & left, &top,
622 &width, &height, &data, &rowBytes )) { 622 &width, &height, &data, &rowBytes )) {
623 return false; 623 return false;
624 } 624 }
625 size_t trimRowBytes = width * bpp; 625 size_t trimRowBytes = width * bpp;
626 626
627 // in case we need a temporary, trimmed copy of the src pixels 627 // in case we need a temporary, trimmed copy of the src pixels
628 #if defined(GOOGLE3)
629 // Stack frame size is limited in GOOGLE3.
630 SkAutoSMalloc<64 * 128> tempStorage;
631 #else
628 SkAutoSMalloc<128 * 128> tempStorage; 632 SkAutoSMalloc<128 * 128> tempStorage;
633 #endif
629 634
630 // We currently lazily create MIPMAPs when the we see a draw with 635 // We currently lazily create MIPMAPs when the we see a draw with
631 // GrTextureParams::kMipMap_FilterMode. Using texture storage requires that the 636 // GrTextureParams::kMipMap_FilterMode. Using texture storage requires that the
632 // MIP levels are all created when the texture is created. So for now we don 't use 637 // MIP levels are all created when the texture is created. So for now we don 't use
633 // texture storage. 638 // texture storage.
634 bool useTexStorage = false && 639 bool useTexStorage = false &&
635 isNewTexture && 640 isNewTexture &&
636 this->glCaps().texStorageSupport(); 641 this->glCaps().texStorageSupport();
637 642
638 if (useTexStorage && kGL_GrGLStandard == this->glStandard()) { 643 if (useTexStorage && kGL_GrGLStandard == this->glStandard()) {
(...skipping 2538 matching lines...) Expand 10 before | Expand all | Expand 10 after
3177 this->setVertexArrayID(gpu, 0); 3182 this->setVertexArrayID(gpu, 0);
3178 } 3183 }
3179 int attrCount = gpu->glCaps().maxVertexAttributes(); 3184 int attrCount = gpu->glCaps().maxVertexAttributes();
3180 if (fDefaultVertexArrayAttribState.count() != attrCount) { 3185 if (fDefaultVertexArrayAttribState.count() != attrCount) {
3181 fDefaultVertexArrayAttribState.resize(attrCount); 3186 fDefaultVertexArrayAttribState.resize(attrCount);
3182 } 3187 }
3183 attribState = &fDefaultVertexArrayAttribState; 3188 attribState = &fDefaultVertexArrayAttribState;
3184 } 3189 }
3185 return attribState; 3190 return attribState;
3186 } 3191 }
OLDNEW
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | tests/MatrixTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698