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

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

Issue 1149773005: Add direct getter for GrCaps to GrContext. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: init caps in the right place 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/GrDashLinePathRenderer.cpp ('k') | src/gpu/GrInOrderDrawBuffer.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 /* 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 14 matching lines...) Expand all
25 25
26 #include "SkStrokeRec.h" 26 #include "SkStrokeRec.h"
27 27
28 //////////////////////////////////////////////////////////////////////////////// 28 ////////////////////////////////////////////////////////////////////////////////
29 29
30 #define DEBUG_INVAL_BUFFER 0xdeadcafe 30 #define DEBUG_INVAL_BUFFER 0xdeadcafe
31 #define DEBUG_INVAL_START_IDX -1 31 #define DEBUG_INVAL_START_IDX -1
32 32
33 GrDrawTarget::GrDrawTarget(GrContext* context) 33 GrDrawTarget::GrDrawTarget(GrContext* context)
34 : fContext(context) 34 : fContext(context)
35 , fCaps(SkRef(context->getGpu()->caps())) 35 , fCaps(SkRef(context->caps()))
36 , fGpuTraceMarkerCount(0) 36 , fGpuTraceMarkerCount(0)
37 , fFlushing(false) { 37 , fFlushing(false) {
38 SkASSERT(context); 38 SkASSERT(context);
39 } 39 }
40 40
41 //////////////////////////////////////////////////////////////////////////////// 41 ////////////////////////////////////////////////////////////////////////////////
42 42
43 bool GrDrawTarget::setupDstReadIfNecessary(const GrPipelineBuilder& pipelineBuil der, 43 bool GrDrawTarget::setupDstReadIfNecessary(const GrPipelineBuilder& pipelineBuil der,
44 const GrProcOptInfo& colorPOI, 44 const GrProcOptInfo& colorPOI,
45 const GrProcOptInfo& coveragePOI, 45 const GrProcOptInfo& coveragePOI,
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 GrPipelineBuilder::AutoRestoreFragmentProcessors* a rfp, 545 GrPipelineBuilder::AutoRestoreFragmentProcessors* a rfp,
546 GrPipelineBuilder::AutoRestoreStencil* ars, 546 GrPipelineBuilder::AutoRestoreStencil* ars,
547 GrScissorState* scissorState, 547 GrScissorState* scissorState,
548 const SkRect* devBounds) { 548 const SkRect* devBounds) {
549 return fClipMaskManager.setupClipping(pipelineBuilder, 549 return fClipMaskManager.setupClipping(pipelineBuilder,
550 arfp, 550 arfp,
551 ars, 551 ars,
552 scissorState, 552 scissorState,
553 devBounds); 553 devBounds);
554 } 554 }
OLDNEW
« no previous file with comments | « src/gpu/GrDashLinePathRenderer.cpp ('k') | src/gpu/GrInOrderDrawBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698