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

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

Issue 2215323003: Start using RenderTargetProxy (omnibus) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 4 years, 1 month 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/GrPipeline.cpp ('k') | src/gpu/GrRenderTargetContext.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 2015 Google Inc. 2 * Copyright 2015 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 GrPipelineBuilder_DEFINED 8 #ifndef GrPipelineBuilder_DEFINED
9 #define GrPipelineBuilder_DEFINED 9 #define GrPipelineBuilder_DEFINED
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 params)); 91 params));
92 } 92 }
93 93
94 void addCoverageTextureProcessor(GrTexture* texture, 94 void addCoverageTextureProcessor(GrTexture* texture,
95 const SkMatrix& matrix, 95 const SkMatrix& matrix,
96 const GrTextureParams& params) { 96 const GrTextureParams& params) {
97 this->addCoverageFragmentProcessor(GrSimpleTextureEffect::Make(texture, nullptr, matrix, 97 this->addCoverageFragmentProcessor(GrSimpleTextureEffect::Make(texture, nullptr, matrix,
98 params)); 98 params));
99 } 99 }
100 100
101 //---
102 void addColorTextureProcessor(GrTextureProxy* texture, const SkMatrix& matri x);
103 void addCoverageTextureProcessor(GrTextureProxy* texture, const SkMatrix& ma trix);
104
105 void addColorTextureProcessor(GrTextureProxy* texture,
106 const SkMatrix& matrix,
107 const GrTextureParams& params);
108 void addCoverageTextureProcessor(GrTextureProxy* texture,
109 const SkMatrix& matrix,
110 const GrTextureParams& params);
111 //---
112
101 /** 113 /**
102 * When this object is destroyed it will remove any color/coverage FPs from the pipeline builder 114 * When this object is destroyed it will remove any color/coverage FPs from the pipeline builder
103 * that were added after its constructor. 115 * that were added after its constructor.
104 * This class can transiently modify its "const" GrPipelineBuilder object bu t will restore it 116 * This class can transiently modify its "const" GrPipelineBuilder object bu t will restore it
105 * when done - so it is notionally "const" correct. 117 * when done - so it is notionally "const" correct.
106 */ 118 */
107 class AutoRestoreFragmentProcessorState : public ::SkNoncopyable { 119 class AutoRestoreFragmentProcessorState : public ::SkNoncopyable {
108 public: 120 public:
109 AutoRestoreFragmentProcessorState() 121 AutoRestoreFragmentProcessorState()
110 : fPipelineBuilder(nullptr) 122 : fPipelineBuilder(nullptr)
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 FragmentProcessorArray fCoverageFragmentProcessors; 323 FragmentProcessorArray fCoverageFragmentProcessors;
312 324
313 friend class GrPipeline; 325 friend class GrPipeline;
314 // This gives the GrRenderTargetOpList raw access to fColorFragmentProcessor s & 326 // This gives the GrRenderTargetOpList raw access to fColorFragmentProcessor s &
315 // fCoverageFragmentProcessors 327 // fCoverageFragmentProcessors
316 // TODO: that access seems a little dodgy 328 // TODO: that access seems a little dodgy
317 friend class GrRenderTargetOpList; 329 friend class GrRenderTargetOpList;
318 }; 330 };
319 331
320 #endif 332 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrPipeline.cpp ('k') | src/gpu/GrRenderTargetContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698