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/GrRODrawState.h

Issue 563963004: Make templated GrProgramTResource subclass of GrProgramResource (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 3 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/GrEffect.cpp ('k') | src/gpu/GrTextureAccess.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 GrRODrawState_DEFINED 8 #ifndef GrRODrawState_DEFINED
9 #define GrRODrawState_DEFINED 9 #define GrRODrawState_DEFINED
10 10
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 * Subclasses of GrDrawTarget that actually draw (as opposed to those that j ust buffer for 390 * Subclasses of GrDrawTarget that actually draw (as opposed to those that j ust buffer for
391 * playback) must call this function and respect the flags that replace the output color. 391 * playback) must call this function and respect the flags that replace the output color.
392 * 392 *
393 * If the cached BlendOptFlags does not have the invalidate bit set, then ge tBlendOpts will 393 * If the cached BlendOptFlags does not have the invalidate bit set, then ge tBlendOpts will
394 * simply returned the cached flags and coefficients. Otherwise it will calc ulate the values. 394 * simply returned the cached flags and coefficients. Otherwise it will calc ulate the values.
395 */ 395 */
396 BlendOptFlags getBlendOpts(bool forceCoverage = false, 396 BlendOptFlags getBlendOpts(bool forceCoverage = false,
397 GrBlendCoeff* srcCoeff = NULL, 397 GrBlendCoeff* srcCoeff = NULL,
398 GrBlendCoeff* dstCoeff = NULL) const; 398 GrBlendCoeff* dstCoeff = NULL) const;
399 399
400 typedef GrProgramTResource<GrRenderTarget> ProgramRenderTarget;
400 // These fields are roughly sorted by decreasing likelihood of being differe nt in op== 401 // These fields are roughly sorted by decreasing likelihood of being differe nt in op==
401 GrProgramResource fRenderTarget; 402 ProgramRenderTarget fRenderTarget;
402 GrColor fColor; 403 GrColor fColor;
403 SkMatrix fViewMatrix; 404 SkMatrix fViewMatrix;
404 GrColor fBlendConstant; 405 GrColor fBlendConstant;
405 uint32_t fFlagBits; 406 uint32_t fFlagBits;
406 const GrVertexAttrib* fVAPtr; 407 const GrVertexAttrib* fVAPtr;
407 int fVACount; 408 int fVACount;
408 size_t fVAStride; 409 size_t fVAStride;
409 GrStencilSettings fStencilSettings; 410 GrStencilSettings fStencilSettings;
410 uint8_t fCoverage; 411 uint8_t fCoverage;
411 DrawFace fDrawFace; 412 DrawFace fDrawFace;
(...skipping 16 matching lines...) Expand all
428 * Determines whether src alpha is guaranteed to be one for all src pixels 429 * Determines whether src alpha is guaranteed to be one for all src pixels
429 */ 430 */
430 bool srcAlphaWillBeOne() const; 431 bool srcAlphaWillBeOne() const;
431 432
432 typedef SkRefCnt INHERITED; 433 typedef SkRefCnt INHERITED;
433 }; 434 };
434 435
435 GR_MAKE_BITFIELD_OPS(GrRODrawState::BlendOptFlags); 436 GR_MAKE_BITFIELD_OPS(GrRODrawState::BlendOptFlags);
436 437
437 #endif 438 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrEffect.cpp ('k') | src/gpu/GrTextureAccess.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698