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 #ifndef GrGLGpuCommandBuffer_DEFINED | 8 #ifndef GrGLGpuCommandBuffer_DEFINED |
9 #define GrGLGpuCommandBuffer_DEFINED | 9 #define GrGLGpuCommandBuffer_DEFINED |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 void onSubmit(const SkIRect& bounds) override {} | 33 void onSubmit(const SkIRect& bounds) override {} |
34 | 34 |
35 void onDraw(const GrPipeline& pipeline, | 35 void onDraw(const GrPipeline& pipeline, |
36 const GrPrimitiveProcessor& primProc, | 36 const GrPrimitiveProcessor& primProc, |
37 const GrMesh* mesh, | 37 const GrMesh* mesh, |
38 int meshCount) override { | 38 int meshCount) override { |
39 fGpu->draw(pipeline, primProc, mesh, meshCount); | 39 fGpu->draw(pipeline, primProc, mesh, meshCount); |
40 } | 40 } |
41 | 41 |
42 void onClear(GrRenderTarget* rt, const SkIRect& rect, GrColor color) overrid
e { | 42 void onClear(GrRenderTarget* rt, const GrFixedClip& clip, GrColor color) ove
rride { |
43 fGpu->clear(rect, color, rt); | 43 fGpu->clear(clip, color, rt); |
44 } | 44 } |
45 | 45 |
46 void onClearStencilClip(GrRenderTarget* rt, const SkIRect& rect, bool inside
Clip) override { | 46 void onClearStencilClip(GrRenderTarget* rt, |
47 fGpu->clearStencilClip(rect, insideClip, rt); | 47 const GrFixedClip& clip, |
| 48 bool insideStencilMask) override { |
| 49 fGpu->clearStencilClip(clip, insideStencilMask, rt); |
48 } | 50 } |
49 | 51 |
50 GrGLGpu* fGpu; | 52 GrGLGpu* fGpu; |
51 | 53 |
52 typedef GrGpuCommandBuffer INHERITED; | 54 typedef GrGpuCommandBuffer INHERITED; |
53 }; | 55 }; |
54 | 56 |
55 #endif | 57 #endif |
56 | 58 |
OLD | NEW |