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

Side by Side Diff: src/gpu/instanced/InstancedRendering.cpp

Issue 2167193002: Revert of Remove DrawFace enum from GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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/gl/GrGLPathRendering.cpp ('k') | src/gpu/text/GrAtlasTextBlob.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 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"
12 #include "GrPipeline.h" 11 #include "GrPipeline.h"
13 #include "GrResourceProvider.h" 12 #include "GrResourceProvider.h"
14 #include "instanced/InstanceProcessor.h" 13 #include "instanced/InstanceProcessor.h"
15 14
16 namespace gr_instanced { 15 namespace gr_instanced {
17 16
18 InstancedRendering::InstancedRendering(GrGpu* gpu, AntialiasMode lastSupportedAA Mode, 17 InstancedRendering::InstancedRendering(GrGpu* gpu, AntialiasMode lastSupportedAA Mode,
19 bool canRenderToFloat) 18 bool canRenderToFloat)
20 : fGpu(SkRef(gpu)), 19 : fGpu(SkRef(gpu)),
21 fLastSupportedAAMode(lastSupportedAAMode), 20 fLastSupportedAAMode(lastSupportedAAMode),
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 } 488 }
490 489
491 void InstancedRendering::resetGpuResources(ResetType resetType) { 490 void InstancedRendering::resetGpuResources(ResetType resetType) {
492 fVertexBuffer.reset(); 491 fVertexBuffer.reset();
493 fIndexBuffer.reset(); 492 fIndexBuffer.reset();
494 fParamsBuffer.reset(); 493 fParamsBuffer.reset();
495 this->onResetGpuResources(resetType); 494 this->onResetGpuResources(resetType);
496 } 495 }
497 496
498 } 497 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLPathRendering.cpp ('k') | src/gpu/text/GrAtlasTextBlob.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698