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

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

Issue 1273803004: Use a factory function to create GrPipeline and remove unused member (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « no previous file | src/gpu/GrPipeline.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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 return SkNEW_PLACEMENT_ARGS(pipelineAddr, GrPipeline, (*pipelineInfo.fPipeli neBuilder, 463 return GrPipeline::CreateAt(pipelineAddr, *pipelineInfo.fPipelineBuilder,
464 pipelineInfo.fColorP OI, 464 pipelineInfo.fColorPOI,
465 pipelineInfo.fCovera gePOI, 465 pipelineInfo.fCoveragePOI,
466 *this->caps(), 466 *this->caps(),
467 *pipelineInfo.fSciss or, 467 *pipelineInfo.fScissor,
468 &pipelineInfo.fDstTe xture)); 468 &pipelineInfo.fDstTexture);
469 } 469 }
470
470 /////////////////////////////////////////////////////////////////////////////// 471 ///////////////////////////////////////////////////////////////////////////////
471 472
472 GrDrawTarget::PipelineInfo::PipelineInfo(const GrPipelineBuilder& pipelineBuilde r, 473 GrDrawTarget::PipelineInfo::PipelineInfo(const GrPipelineBuilder& pipelineBuilde r,
473 GrScissorState* scissor, 474 GrScissorState* scissor,
474 const GrPrimitiveProcessor* primProc, 475 const GrPrimitiveProcessor* primProc,
475 const SkRect* devBounds, 476 const SkRect* devBounds,
476 GrDrawTarget* target) 477 GrDrawTarget* target)
477 : fPipelineBuilder(&pipelineBuilder) 478 : fPipelineBuilder(&pipelineBuilder)
478 , fScissor(scissor) { 479 , fScissor(scissor) {
479 fColorPOI = fPipelineBuilder->colorProcInfo(primProc); 480 fColorPOI = fPipelineBuilder->colorProcInfo(primProc);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 ars, 518 ars,
518 scissorState, 519 scissorState,
519 devBounds); 520 devBounds);
520 } 521 }
521 522
522 void GrClipTarget::purgeResources() { 523 void GrClipTarget::purgeResources() {
523 // The clip mask manager can rebuild all its clip masks so just 524 // The clip mask manager can rebuild all its clip masks so just
524 // get rid of them all. 525 // get rid of them all.
525 fClipMaskManager->purgeResources(); 526 fClipMaskManager->purgeResources();
526 }; 527 };
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrPipeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698