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

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

Issue 1275543005: Move some work from backend onClear to base class clear (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Pass references and rebase Created 5 years, 4 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 | « include/gpu/GrCaps.h ('k') | src/gpu/GrBufferedDrawTarget.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 GrBufferedDrawTarget_DEFINED 8 #ifndef GrBufferedDrawTarget_DEFINED
9 #define GrBufferedDrawTarget_DEFINED 9 #define GrBufferedDrawTarget_DEFINED
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 const PipelineInfo&) override; 89 const PipelineInfo&) override;
90 void onDrawPaths(const GrPathProcessor*, 90 void onDrawPaths(const GrPathProcessor*,
91 const GrPathRange*, 91 const GrPathRange*,
92 const void* indices, 92 const void* indices,
93 PathIndexType, 93 PathIndexType,
94 const float transformValues[], 94 const float transformValues[],
95 PathTransformType, 95 PathTransformType,
96 int count, 96 int count,
97 const GrStencilSettings&, 97 const GrStencilSettings&,
98 const PipelineInfo&) override; 98 const PipelineInfo&) override;
99 void onClear(const SkIRect* rect, 99 void onClear(const SkIRect& rect,
100 GrColor color, 100 GrColor color,
101 bool canIgnoreRect,
102 GrRenderTarget* renderTarget) override; 101 GrRenderTarget* renderTarget) override;
103 void onCopySurface(GrSurface* dst, 102 void onCopySurface(GrSurface* dst,
104 GrSurface* src, 103 GrSurface* src,
105 const SkIRect& srcRect, 104 const SkIRect& srcRect,
106 const SkIPoint& dstPoint) override; 105 const SkIPoint& dstPoint) override;
107 106
108 // Records any trace markers for a command 107 // Records any trace markers for a command
109 void recordTraceMarkersIfNecessary(GrTargetCommands::Cmd*); 108 void recordTraceMarkersIfNecessary(GrTargetCommands::Cmd*);
110 SkString getCmdString(int index) const { 109 SkString getCmdString(int index) const {
111 SkASSERT(index < fGpuCmdMarkers.count()); 110 SkASSERT(index < fGpuCmdMarkers.count());
(...skipping 22 matching lines...) Expand all
134 SkChunkAlloc fPathIndexBuffer; 133 SkChunkAlloc fPathIndexBuffer;
135 SkChunkAlloc fPathTransformBuffer; 134 SkChunkAlloc fPathTransformBuffer;
136 SkChunkAlloc fPipelineBuffer; 135 SkChunkAlloc fPipelineBuffer;
137 uint32_t fDrawID; 136 uint32_t fDrawID;
138 SkAutoTUnref<State> fPrevState; 137 SkAutoTUnref<State> fPrevState;
139 138
140 typedef GrClipTarget INHERITED; 139 typedef GrClipTarget INHERITED;
141 }; 140 };
142 141
143 #endif 142 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrCaps.h ('k') | src/gpu/GrBufferedDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698