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

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

Issue 26342006: Move renderable config list to GrDrawTargetCaps (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix size_t/int comparison Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/gpu/GrGpu.h ('k') | src/gpu/gl/GrGLCaps.h » ('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 /* 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 #include "GrGpu.h" 10 #include "GrGpu.h"
(...skipping 29 matching lines...) Expand all
40 fClipMaskManager.setGpu(this); 40 fClipMaskManager.setGpu(this);
41 41
42 fGeomPoolStateStack.push_back(); 42 fGeomPoolStateStack.push_back();
43 #ifdef SK_DEBUG 43 #ifdef SK_DEBUG
44 GeometryPoolState& poolState = fGeomPoolStateStack.back(); 44 GeometryPoolState& poolState = fGeomPoolStateStack.back();
45 poolState.fPoolVertexBuffer = (GrVertexBuffer*)DEBUG_INVAL_BUFFER; 45 poolState.fPoolVertexBuffer = (GrVertexBuffer*)DEBUG_INVAL_BUFFER;
46 poolState.fPoolStartVertex = DEBUG_INVAL_START_IDX; 46 poolState.fPoolStartVertex = DEBUG_INVAL_START_IDX;
47 poolState.fPoolIndexBuffer = (GrIndexBuffer*)DEBUG_INVAL_BUFFER; 47 poolState.fPoolIndexBuffer = (GrIndexBuffer*)DEBUG_INVAL_BUFFER;
48 poolState.fPoolStartIndex = DEBUG_INVAL_START_IDX; 48 poolState.fPoolStartIndex = DEBUG_INVAL_START_IDX;
49 #endif 49 #endif
50
51 for (int i = 0; i < kGrPixelConfigCnt; ++i) {
52 fConfigRenderSupport[i] = false;
53 };
54 } 50 }
55 51
56 GrGpu::~GrGpu() { 52 GrGpu::~GrGpu() {
57 this->releaseResources(); 53 this->releaseResources();
58 } 54 }
59 55
60 void GrGpu::abandonResources() { 56 void GrGpu::abandonResources() {
61 57
62 fClipMaskManager.releaseResources(); 58 fClipMaskManager.releaseResources();
63 59
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 } 534 }
539 535
540 void GrGpu::releaseIndexArray() { 536 void GrGpu::releaseIndexArray() {
541 // if index source was array, we stowed data in the pool 537 // if index source was array, we stowed data in the pool
542 const GeometrySrcState& geoSrc = this->getGeomSrc(); 538 const GeometrySrcState& geoSrc = this->getGeomSrc();
543 SkASSERT(kArray_GeometrySrcType == geoSrc.fIndexSrc); 539 SkASSERT(kArray_GeometrySrcType == geoSrc.fIndexSrc);
544 size_t bytes = geoSrc.fIndexCount * sizeof(uint16_t); 540 size_t bytes = geoSrc.fIndexCount * sizeof(uint16_t);
545 fIndexPool->putBack(bytes); 541 fIndexPool->putBack(bytes);
546 --fIndexPoolUseCnt; 542 --fIndexPoolUseCnt;
547 } 543 }
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.h ('k') | src/gpu/gl/GrGLCaps.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698