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

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

Issue 1161063003: Revert "Revert of Move copy-surface-as-draw fallback to GrGLGpu. (patchset #12 id:220001 of https:/… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 5 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/GrGpu.h ('k') | src/gpu/GrImmediateDrawTarget.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 2015 Google Inc. 2 * Copyright 2015 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 GrImmediateDrawTarget_DEFINED 8 #ifndef GrImmediateDrawTarget_DEFINED
9 #define GrImmediateDrawTarget_DEFINED 9 #define GrImmediateDrawTarget_DEFINED
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 PathTransformType, 60 PathTransformType,
61 int count, 61 int count,
62 const GrStencilSettings&, 62 const GrStencilSettings&,
63 const PipelineInfo&) override { 63 const PipelineInfo&) override {
64 SkFAIL("Only batch implemented\n"); 64 SkFAIL("Only batch implemented\n");
65 } 65 }
66 void onClear(const SkIRect* rect, 66 void onClear(const SkIRect* rect,
67 GrColor color, 67 GrColor color,
68 bool canIgnoreRect, 68 bool canIgnoreRect,
69 GrRenderTarget* renderTarget) override; 69 GrRenderTarget* renderTarget) override;
70 void onCopySurface(GrSurface* dst,
71 GrSurface* src,
72 const SkIRect& srcRect,
73 const SkIPoint& dstPoint) override;
74 70
75 bool isIssued(uint32_t drawID) override { return drawID != fDrawID; } 71 bool isIssued(uint32_t drawID) override { return drawID != fDrawID; }
76 72
77 bool SK_WARN_UNUSED_RESULT setupPipelineAndShouldDraw(GrPipeline*, 73 bool SK_WARN_UNUSED_RESULT setupPipelineAndShouldDraw(GrPipeline*,
78 const GrDrawTarget::Pi pelineInfo&); 74 const GrDrawTarget::Pi pelineInfo&);
79 75
80 void recordXferBarrierIfNecessary(const GrPipeline*); 76 void recordXferBarrierIfNecessary(const GrPipeline*);
81 77
82 GrBatchTarget fBatchTarget; 78 GrBatchTarget fBatchTarget;
83 uint32_t fDrawID; 79 uint32_t fDrawID;
84 80
85 typedef GrClipTarget INHERITED; 81 typedef GrClipTarget INHERITED;
86 }; 82 };
87 83
88 #endif 84 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.h ('k') | src/gpu/GrImmediateDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698