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

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

Issue 2165283002: Remove DrawFace enum from GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: try again 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"
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
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 }
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