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

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

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/GrDrawTarget.h ('k') | src/gpu/GrImmediateDrawTarget.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 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "GrDrawTarget.h" 9 #include "GrDrawTarget.h"
10 10
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 dstPoint, 452 dstPoint,
453 &clippedSrcRect, 453 &clippedSrcRect,
454 &clippedDstPoint)) { 454 &clippedDstPoint)) {
455 return; 455 return;
456 } 456 }
457 457
458 this->onCopySurface(dst, src, clippedSrcRect, clippedDstPoint); 458 this->onCopySurface(dst, src, clippedSrcRect, clippedDstPoint);
459 } 459 }
460 460
461 const GrPipeline* GrDrawTarget::setupPipeline(const PipelineInfo& pipelineInfo, 461 const GrPipeline* GrDrawTarget::setupPipeline(const PipelineInfo& pipelineInfo,
462 void* pipelineAddr) { 462 void* pipelineAddr,
463 GrPipelineOptimizations* optimizat ions) {
463 return GrPipeline::CreateAt(pipelineAddr, *pipelineInfo.fPipelineBuilder, 464 return GrPipeline::CreateAt(pipelineAddr, *pipelineInfo.fPipelineBuilder,
464 pipelineInfo.fColorPOI, 465 pipelineInfo.fColorPOI,
465 pipelineInfo.fCoveragePOI, 466 pipelineInfo.fCoveragePOI,
466 *this->caps(), 467 *this->caps(),
467 *pipelineInfo.fScissor, 468 *pipelineInfo.fScissor,
468 &pipelineInfo.fDstTexture); 469 &pipelineInfo.fDstTexture,
470 optimizations);
469 } 471 }
470 472
471 /////////////////////////////////////////////////////////////////////////////// 473 ///////////////////////////////////////////////////////////////////////////////
472 474
473 GrDrawTarget::PipelineInfo::PipelineInfo(const GrPipelineBuilder& pipelineBuilde r, 475 GrDrawTarget::PipelineInfo::PipelineInfo(const GrPipelineBuilder& pipelineBuilde r,
474 GrScissorState* scissor, 476 GrScissorState* scissor,
475 const GrPrimitiveProcessor* primProc, 477 const GrPrimitiveProcessor* primProc,
476 const SkRect* devBounds, 478 const SkRect* devBounds,
477 GrDrawTarget* target) 479 GrDrawTarget* target)
478 : fPipelineBuilder(&pipelineBuilder) 480 : fPipelineBuilder(&pipelineBuilder)
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 ars, 520 ars,
519 scissorState, 521 scissorState,
520 devBounds); 522 devBounds);
521 } 523 }
522 524
523 void GrClipTarget::purgeResources() { 525 void GrClipTarget::purgeResources() {
524 // The clip mask manager can rebuild all its clip masks so just 526 // The clip mask manager can rebuild all its clip masks so just
525 // get rid of them all. 527 // get rid of them all.
526 fClipMaskManager->purgeResources(); 528 fClipMaskManager->purgeResources();
527 }; 529 };
OLDNEW
« no previous file with comments | « src/gpu/GrDrawTarget.h ('k') | src/gpu/GrImmediateDrawTarget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698