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

Side by Side Diff: src/gpu/GrDrawContextPriv.h

Issue 2086293006: Move GrPipelineBuilder out of gms & reduce use of GrPipelineBuilder.h (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update to ToT Created 4 years, 6 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/GrClipMaskManager.h ('k') | src/gpu/GrDrawTarget.h » ('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 #ifndef GrDrawContextPriv_DEFINED 8 #ifndef GrDrawContextPriv_DEFINED
9 #define GrDrawContextPriv_DEFINED 9 #define GrDrawContextPriv_DEFINED
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 const SkRect&); 43 const SkRect&);
44 44
45 bool drawAndStencilPath(const GrFixedClip&, 45 bool drawAndStencilPath(const GrFixedClip&,
46 const GrUserStencilSettings*, 46 const GrUserStencilSettings*,
47 SkRegion::Op op, 47 SkRegion::Op op,
48 bool invert, 48 bool invert,
49 bool doAA, 49 bool doAA,
50 const SkMatrix& viewMatrix, 50 const SkMatrix& viewMatrix,
51 const SkPath&); 51 const SkPath&);
52 52
53 void testingOnly_drawBatch(const GrPipelineBuilder& pipelineBuilder, 53 void testingOnly_drawBatch(const GrPaint&,
54 GrDrawBatch* batch, 54 GrDrawBatch* batch,
55 const GrClip* = nullptr); 55 const GrUserStencilSettings* = nullptr,
56 bool snapToCenters = false);
56 57
57 private: 58 private:
58 explicit GrDrawContextPriv(GrDrawContext* drawContext) : fDrawContext(drawCo ntext) {} 59 explicit GrDrawContextPriv(GrDrawContext* drawContext) : fDrawContext(drawCo ntext) {}
59 GrDrawContextPriv(const GrRenderTargetPriv&) {} // unimpl 60 GrDrawContextPriv(const GrRenderTargetPriv&) {} // unimpl
60 GrDrawContextPriv& operator=(const GrRenderTargetPriv&); // unimpl 61 GrDrawContextPriv& operator=(const GrRenderTargetPriv&); // unimpl
61 62
62 // No taking addresses of this type. 63 // No taking addresses of this type.
63 const GrDrawContextPriv* operator&() const; 64 const GrDrawContextPriv* operator&() const;
64 GrDrawContextPriv* operator&(); 65 GrDrawContextPriv* operator&();
65 66
66 GrDrawContext* fDrawContext; 67 GrDrawContext* fDrawContext;
67 68
68 friend class GrDrawContext; // to construct/copy this type. 69 friend class GrDrawContext; // to construct/copy this type.
69 }; 70 };
70 71
71 inline GrDrawContextPriv GrDrawContext::drawContextPriv() { return GrDrawContext Priv(this); } 72 inline GrDrawContextPriv GrDrawContext::drawContextPriv() { return GrDrawContext Priv(this); }
72 73
73 inline const GrDrawContextPriv GrDrawContext::drawContextPriv () const { 74 inline const GrDrawContextPriv GrDrawContext::drawContextPriv () const {
74 return GrDrawContextPriv(const_cast<GrDrawContext*>(this)); 75 return GrDrawContextPriv(const_cast<GrDrawContext*>(this));
75 } 76 }
76 77
77 #endif 78 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrClipMaskManager.h ('k') | src/gpu/GrDrawTarget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698