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

Side by Side Diff: src/gpu/gl/GrGLGpu.h

Issue 2262473003: Define clear regions in terms of GrFixedClip (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_fixedcliptosrc
Patch Set: rebase Created 4 years, 3 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/batches/GrClearStencilClipBatch.h ('k') | src/gpu/gl/GrGLGpu.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 2011 Google Inc. 2 * Copyright 2011 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 GrGLGpu_DEFINED 8 #ifndef GrGLGpu_DEFINED
9 #define GrGLGpu_DEFINED 9 #define GrGLGpu_DEFINED
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // Thus this is the implementation of the draw call for the corresponding pa ssthrough function 98 // Thus this is the implementation of the draw call for the corresponding pa ssthrough function
99 // on GrGLGpuCommandBuffer. 99 // on GrGLGpuCommandBuffer.
100 void draw(const GrPipeline&, 100 void draw(const GrPipeline&,
101 const GrPrimitiveProcessor&, 101 const GrPrimitiveProcessor&,
102 const GrMesh*, 102 const GrMesh*,
103 int meshCount); 103 int meshCount);
104 104
105 // The GrGLGpuCommandBuffer does not buffer up draws before submitting them to the gpu. 105 // The GrGLGpuCommandBuffer does not buffer up draws before submitting them to the gpu.
106 // Thus this is the implementation of the clear call for the corresponding p assthrough function 106 // Thus this is the implementation of the clear call for the corresponding p assthrough function
107 // on GrGLGpuCommandBuffer. 107 // on GrGLGpuCommandBuffer.
108 void clear(const SkIRect& rect, GrColor color, GrRenderTarget* renderTarget) ; 108 void clear(const GrFixedClip&, GrColor, GrRenderTarget*);
109 109
110 // The GrGLGpuCommandBuffer does not buffer up draws before submitting them to the gpu. 110 // The GrGLGpuCommandBuffer does not buffer up draws before submitting them to the gpu.
111 // Thus this is the implementation of the clearStencil call for the correspo nding passthrough 111 // Thus this is the implementation of the clearStencil call for the correspo nding passthrough
112 // function on GrGLGpuCommandBuffer. 112 // function on GrGLGpuCommandBuffer.
113 void clearStencilClip(const SkIRect& rect, bool insideClip, GrRenderTarget* renderTarget); 113 void clearStencilClip(const GrFixedClip&, bool insideStencilMask, GrRenderTa rget*);
114 114
115 const GrGLContext* glContextForTesting() const override { 115 const GrGLContext* glContextForTesting() const override {
116 return &this->glContext(); 116 return &this->glContext();
117 } 117 }
118 118
119 void clearStencil(GrRenderTarget*) override; 119 void clearStencil(GrRenderTarget*) override;
120 120
121 GrGpuCommandBuffer* createCommandBuffer( 121 GrGpuCommandBuffer* createCommandBuffer(
122 GrRenderTarget* target, 122 GrRenderTarget* target,
123 const GrGpuCommandBuffer::LoadAndStoreInfo& colorInfo, 123 const GrGpuCommandBuffer::LoadAndStoreInfo& colorInfo,
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 bool fPLSHasBeenUsed; 635 bool fPLSHasBeenUsed;
636 636
637 float fHWMinSampleShading; 637 float fHWMinSampleShading;
638 638
639 typedef GrGpu INHERITED; 639 typedef GrGpu INHERITED;
640 friend class GrGLPathRendering; // For accessing setTextureUnit. 640 friend class GrGLPathRendering; // For accessing setTextureUnit.
641 friend class gr_instanced::GLInstancedRendering; // For accessing flushGLSta te. 641 friend class gr_instanced::GLInstancedRendering; // For accessing flushGLSta te.
642 }; 642 };
643 643
644 #endif 644 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrClearStencilClipBatch.h ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698