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

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

Issue 1275003004: Remove GrPipelineOptimizations member from GrPipeline (Closed) Base URL: https://skia.googlesource.com/skia.git@opt
Patch Set: 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 | « src/gpu/GrBufferedDrawTarget.cpp ('k') | src/gpu/GrDrawTarget.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 2010 Google Inc. 2 * Copyright 2010 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 GrDrawTarget_DEFINED 8 #ifndef GrDrawTarget_DEFINED
9 #define GrDrawTarget_DEFINED 9 #define GrDrawTarget_DEFINED
10 10
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 bool willColorBlendWithDst(const GrPrimitiveProcessor* primProc) const { 232 bool willColorBlendWithDst(const GrPrimitiveProcessor* primProc) const {
233 return fPipelineBuilder->willColorBlendWithDst(primProc); 233 return fPipelineBuilder->willColorBlendWithDst(primProc);
234 } 234 }
235 private: 235 private:
236 friend class GrDrawTarget; 236 friend class GrDrawTarget;
237 237
238 bool mustSkipDraw() const { return (NULL == fPipelineBuilder); } 238 bool mustSkipDraw() const { return (NULL == fPipelineBuilder); }
239 239
240 const GrPipelineBuilder* fPipelineBuilder; 240 const GrPipelineBuilder* fPipelineBuilder;
241 GrScissorState* fScissor; 241 GrScissorState* fScissor;
242 GrProcOptInfo fColorPOI; 242 GrProcOptInfo fColorPOI;
243 GrProcOptInfo fCoveragePOI; 243 GrProcOptInfo fCoveragePOI;
244 GrXferProcessor::DstTexture fDstTexture; 244 GrXferProcessor::DstTexture fDstTexture;
245 }; 245 };
246 246
247 const GrPipeline* setupPipeline(const PipelineInfo& pipelineInfo, void* pipe lineAddr); 247 const GrPipeline* setupPipeline(const PipelineInfo&, void* pipelineAddr,
248 GrPipelineOptimizations*);
248 249
249 private: 250 private:
250 virtual void onReset() = 0; 251 virtual void onReset() = 0;
251 252
252 virtual void onFlush() = 0; 253 virtual void onFlush() = 0;
253 254
254 virtual void onDrawBatch(GrBatch*, const PipelineInfo&) = 0; 255 virtual void onDrawBatch(GrBatch*, const PipelineInfo&) = 0;
255 virtual void onStencilPath(const GrPipelineBuilder&, 256 virtual void onStencilPath(const GrPipelineBuilder&,
256 const GrPathProcessor*, 257 const GrPathProcessor*,
257 const GrPath*, 258 const GrPath*,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 bool setupClip(const GrPipelineBuilder&, 342 bool setupClip(const GrPipelineBuilder&,
342 GrPipelineBuilder::AutoRestoreFragmentProcessorState*, 343 GrPipelineBuilder::AutoRestoreFragmentProcessorState*,
343 GrPipelineBuilder::AutoRestoreStencil*, 344 GrPipelineBuilder::AutoRestoreStencil*,
344 GrScissorState* scissorState, 345 GrScissorState* scissorState,
345 const SkRect* devBounds) override; 346 const SkRect* devBounds) override;
346 347
347 typedef GrDrawTarget INHERITED; 348 typedef GrDrawTarget INHERITED;
348 }; 349 };
349 350
350 #endif 351 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrBufferedDrawTarget.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698