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

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: feedback inc 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
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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 */ 349 */
350 void getStageStats(const GrDrawState& ds, int firstColorStageIdx, int firstC overageStageIdx, 350 void getStageStats(const GrDrawState& ds, int firstColorStageIdx, int firstC overageStageIdx,
351 GrProgramDesc::DescInfo*); 351 GrProgramDesc::DescInfo*);
352 352
353 /** 353 /**
354 * Calculates the primary and secondary output types of the shader. For cert ain output types 354 * Calculates the primary and secondary output types of the shader. For cert ain output types
355 * the function may adjust the blend coefficients. After this function is ca lled the src and dst 355 * the function may adjust the blend coefficients. After this function is ca lled the src and dst
356 * blend coeffs will represent those used by backend API. 356 * blend coeffs will represent those used by backend API.
357 */ 357 */
358 void setOutputStateInfo(const GrDrawState& ds, const GrDrawTargetCaps&, 358 void setOutputStateInfo(const GrDrawState& ds, const GrDrawTargetCaps&,
359 int firstCoverageStageIdx, GrProgramDesc::DescInfo*, 359 GrProgramDesc::DescInfo*);
360 bool* separateCoverageFromColor);
361 360
362 bool isEqual(const GrOptDrawState& that) const; 361 bool isEqual(const GrOptDrawState& that) const;
363 362
364 // These fields are roughly sorted by decreasing likelihood of being differe nt in op== 363 // These fields are roughly sorted by decreasing likelihood of being differe nt in op==
365 typedef GrTGpuResourceRef<GrRenderTarget> ProgramRenderTarget; 364 typedef GrTGpuResourceRef<GrRenderTarget> ProgramRenderTarget;
366 ProgramRenderTarget fRenderTarget; 365 ProgramRenderTarget fRenderTarget;
367 GrColor fColor; 366 GrColor fColor;
368 SkMatrix fViewMatrix; 367 SkMatrix fViewMatrix;
369 GrColor fBlendConstant; 368 GrColor fBlendConstant;
370 uint32_t fFlagBits; 369 uint32_t fFlagBits;
(...skipping 20 matching lines...) Expand all
391 390
392 GrProgramDesc fDesc; 391 GrProgramDesc fDesc;
393 392
394 typedef SkRefCnt INHERITED; 393 typedef SkRefCnt INHERITED;
395 }; 394 };
396 395
397 GR_MAKE_BITFIELD_OPS(GrOptDrawState::BlendOptFlags); 396 GR_MAKE_BITFIELD_OPS(GrOptDrawState::BlendOptFlags);
398 397
399 #endif 398 #endif
400 399
OLDNEW
« no previous file with comments | « src/gpu/GrDrawState.cpp ('k') | src/gpu/GrOptDrawState.cpp » ('j') | src/gpu/GrOptDrawState.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698