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

Side by Side Diff: src/gpu/gl/GrGLGpuCommandBuffer.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/gl/GrGLGpu.cpp ('k') | src/gpu/vk/GrVkGpuCommandBuffer.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 GrGLGpuCommandBuffer_DEFINED 8 #ifndef GrGLGpuCommandBuffer_DEFINED
9 #define GrGLGpuCommandBuffer_DEFINED 9 #define GrGLGpuCommandBuffer_DEFINED
10 10
(...skipping 21 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLGpu.cpp ('k') | src/gpu/vk/GrVkGpuCommandBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698