OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 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 "GrGpu.h" | 9 #include "GrGpu.h" |
10 | 10 |
11 #include "GrBuffer.h" | 11 #include "GrBuffer.h" |
12 #include "GrCaps.h" | 12 #include "GrCaps.h" |
13 #include "GrContext.h" | 13 #include "GrContext.h" |
14 #include "GrGpuResourcePriv.h" | 14 #include "GrGpuResourcePriv.h" |
15 #include "GrMesh.h" | 15 #include "GrMesh.h" |
16 #include "GrPathRendering.h" | 16 #include "GrPathRendering.h" |
17 #include "GrPipeline.h" | 17 #include "GrPipeline.h" |
18 #include "GrResourceCache.h" | 18 #include "GrResourceCache.h" |
19 #include "GrResourceProvider.h" | 19 #include "GrResourceProvider.h" |
20 #include "GrRenderTargetPriv.h" | 20 #include "GrRenderTargetPriv.h" |
21 #include "GrStencilAttachment.h" | 21 #include "GrStencilAttachment.h" |
22 #include "GrSurfacePriv.h" | 22 #include "GrSurfacePriv.h" |
23 #include "GrTexturePriv.h" | 23 #include "GrTexturePriv.h" |
24 #include "SkTypes.h" | 24 #include "SkMathPriv.h" |
25 | 25 |
26 GrMesh& GrMesh::operator =(const GrMesh& di) { | 26 GrMesh& GrMesh::operator =(const GrMesh& di) { |
27 fPrimitiveType = di.fPrimitiveType; | 27 fPrimitiveType = di.fPrimitiveType; |
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; |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 int meshCount) { | 497 int meshCount) { |
498 if (primProc.numAttribs() > this->caps()->maxVertexAttributes()) { | 498 if (primProc.numAttribs() > this->caps()->maxVertexAttributes()) { |
499 fStats.incNumFailedDraws(); | 499 fStats.incNumFailedDraws(); |
500 return false; | 500 return false; |
501 } | 501 } |
502 this->handleDirtyContext(); | 502 this->handleDirtyContext(); |
503 | 503 |
504 this->onDraw(pipeline, primProc, meshes, meshCount); | 504 this->onDraw(pipeline, primProc, meshes, meshCount); |
505 return true; | 505 return true; |
506 } | 506 } |
OLD | NEW |