| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright 2016 Google Inc. | 2  * Copyright 2016 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 #include "InstancedRendering.h" | 8 #include "InstancedRendering.h" | 
| 9 | 9 | 
| 10 #include "GrBatchFlushState.h" | 10 #include "GrBatchFlushState.h" | 
|  | 11 #include "GrCaps.h" | 
| 11 #include "GrPipeline.h" | 12 #include "GrPipeline.h" | 
| 12 #include "GrResourceProvider.h" | 13 #include "GrResourceProvider.h" | 
| 13 #include "instanced/InstanceProcessor.h" | 14 #include "instanced/InstanceProcessor.h" | 
| 14 | 15 | 
| 15 namespace gr_instanced { | 16 namespace gr_instanced { | 
| 16 | 17 | 
| 17 InstancedRendering::InstancedRendering(GrGpu* gpu, AntialiasMode lastSupportedAA
     Mode, | 18 InstancedRendering::InstancedRendering(GrGpu* gpu, AntialiasMode lastSupportedAA
     Mode, | 
| 18                                        bool canRenderToFloat) | 19                                        bool canRenderToFloat) | 
| 19     : fGpu(SkRef(gpu)), | 20     : fGpu(SkRef(gpu)), | 
| 20       fLastSupportedAAMode(lastSupportedAAMode), | 21       fLastSupportedAAMode(lastSupportedAAMode), | 
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 488 } | 489 } | 
| 489 | 490 | 
| 490 void InstancedRendering::resetGpuResources(ResetType resetType) { | 491 void InstancedRendering::resetGpuResources(ResetType resetType) { | 
| 491     fVertexBuffer.reset(); | 492     fVertexBuffer.reset(); | 
| 492     fIndexBuffer.reset(); | 493     fIndexBuffer.reset(); | 
| 493     fParamsBuffer.reset(); | 494     fParamsBuffer.reset(); | 
| 494     this->onResetGpuResources(resetType); | 495     this->onResetGpuResources(resetType); | 
| 495 } | 496 } | 
| 496 | 497 | 
| 497 } | 498 } | 
| OLD | NEW | 
|---|