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

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

Issue 699023003: remove separate color from coverage (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 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/GrDrawState.cpp ('k') | src/gpu/GrOptDrawState.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 2014 Google Inc. 2 * Copyright 2014 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 GrOptDrawState_DEFINED 8 #ifndef GrOptDrawState_DEFINED
9 #define GrOptDrawState_DEFINED 9 #define GrOptDrawState_DEFINED
10 10
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 */ 347 */
348 void getStageStats(const GrDrawState& ds, int firstColorStageIdx, int firstC overageStageIdx, 348 void getStageStats(const GrDrawState& ds, int firstColorStageIdx, int firstC overageStageIdx,
349 GrProgramDesc::DescInfo*); 349 GrProgramDesc::DescInfo*);
350 350
351 /** 351 /**
352 * Calculates the primary and secondary output types of the shader. For cert ain output types 352 * Calculates the primary and secondary output types of the shader. For cert ain output types
353 * the function may adjust the blend coefficients. After this function is ca lled the src and dst 353 * the function may adjust the blend coefficients. After this function is ca lled the src and dst
354 * blend coeffs will represent those used by backend API. 354 * blend coeffs will represent those used by backend API.
355 */ 355 */
356 void setOutputStateInfo(const GrDrawState& ds, const GrDrawTargetCaps&, 356 void setOutputStateInfo(const GrDrawState& ds, const GrDrawTargetCaps&,
357 int firstCoverageStageIdx, GrProgramDesc::DescInfo*, 357 GrProgramDesc::DescInfo*);
358 bool* separateCoverageFromColor);
359 358
360 bool isEqual(const GrOptDrawState& that) const; 359 bool isEqual(const GrOptDrawState& that) const;
361 360
362 // These fields are roughly sorted by decreasing likelihood of being differe nt in op== 361 // These fields are roughly sorted by decreasing likelihood of being differe nt in op==
363 typedef GrTGpuResourceRef<GrRenderTarget> ProgramRenderTarget; 362 typedef GrTGpuResourceRef<GrRenderTarget> ProgramRenderTarget;
364 ProgramRenderTarget fRenderTarget; 363 ProgramRenderTarget fRenderTarget;
365 GrColor fColor; 364 GrColor fColor;
366 SkMatrix fViewMatrix; 365 SkMatrix fViewMatrix;
367 GrColor fBlendConstant; 366 GrColor fBlendConstant;
368 uint32_t fFlagBits; 367 uint32_t fFlagBits;
(...skipping 20 matching lines...) Expand all
389 388
390 GrProgramDesc fDesc; 389 GrProgramDesc fDesc;
391 390
392 typedef SkRefCnt INHERITED; 391 typedef SkRefCnt INHERITED;
393 }; 392 };
394 393
395 GR_MAKE_BITFIELD_OPS(GrOptDrawState::BlendOptFlags); 394 GR_MAKE_BITFIELD_OPS(GrOptDrawState::BlendOptFlags);
396 395
397 #endif 396 #endif
398 397
OLDNEW
« no previous file with comments | « src/gpu/GrDrawState.cpp ('k') | src/gpu/GrOptDrawState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698