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

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

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Last update from dead machine Created 4 years, 7 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/GrGeometryBuffer.h ('k') | src/gpu/GrGpuResource.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 /* 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 17 matching lines...) Expand all
28 fStartVertex = di.fStartVertex; 28 fStartVertex = di.fStartVertex;
29 fStartIndex = di.fStartIndex; 29 fStartIndex = di.fStartIndex;
30 fVertexCount = di.fVertexCount; 30 fVertexCount = di.fVertexCount;
31 fIndexCount = di.fIndexCount; 31 fIndexCount = di.fIndexCount;
32 32
33 fInstanceCount = di.fInstanceCount; 33 fInstanceCount = di.fInstanceCount;
34 fVerticesPerInstance = di.fVerticesPerInstance; 34 fVerticesPerInstance = di.fVerticesPerInstance;
35 fIndicesPerInstance = di.fIndicesPerInstance; 35 fIndicesPerInstance = di.fIndicesPerInstance;
36 fMaxInstancesPerDraw = di.fMaxInstancesPerDraw; 36 fMaxInstancesPerDraw = di.fMaxInstancesPerDraw;
37 37
38 fVertexBuffer.reset(di.vertexBuffer()); 38 fVertexBuffer.reset(di.vertexBuffer(), NULL);
39 fIndexBuffer.reset(di.indexBuffer()); 39 fIndexBuffer.reset(di.indexBuffer(), NULL);
40 40
41 return *this; 41 return *this;
42 } 42 }
43 43
44 //////////////////////////////////////////////////////////////////////////////// 44 ////////////////////////////////////////////////////////////////////////////////
45 45
46 GrGpu::GrGpu(GrContext* context) 46 GrGpu::GrGpu(GrContext* context)
47 : fResetTimestamp(kExpiredTimestamp+1) 47 : fResetTimestamp(kExpiredTimestamp+1)
48 , fResetBits(kAll_GrBackendState) 48 , fResetBits(kAll_GrBackendState)
49 , fContext(context) { 49 , fContext(context) {
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 this->xferBarrier(args.fPipeline->getRenderTarget(), barrierType); 343 this->xferBarrier(args.fPipeline->getRenderTarget(), barrierType);
344 } 344 }
345 345
346 GrVertices::Iterator iter; 346 GrVertices::Iterator iter;
347 const GrNonInstancedVertices* verts = iter.init(vertices); 347 const GrNonInstancedVertices* verts = iter.init(vertices);
348 do { 348 do {
349 this->onDraw(args, *verts); 349 this->onDraw(args, *verts);
350 fStats.incNumDraws(); 350 fStats.incNumDraws();
351 } while ((verts = iter.next())); 351 } while ((verts = iter.next()));
352 } 352 }
OLDNEW
« no previous file with comments | « src/gpu/GrGeometryBuffer.h ('k') | src/gpu/GrGpuResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698