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

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

Issue 574333003: Rename GrProgramResource to GrGpuResourceRef (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add newline before private: 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/GrProgramResource.cpp ('k') | src/gpu/GrRODrawState.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 typedef GrTGpuResourceRef<GrRenderTarget> ProgramRenderTarget;
401 // 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==
402 ProgramRenderTarget fRenderTarget; 402 ProgramRenderTarget fRenderTarget;
403 GrColor fColor; 403 GrColor fColor;
404 SkMatrix fViewMatrix; 404 SkMatrix fViewMatrix;
405 GrColor fBlendConstant; 405 GrColor fBlendConstant;
406 uint32_t fFlagBits; 406 uint32_t fFlagBits;
407 const GrVertexAttrib* fVAPtr; 407 const GrVertexAttrib* fVAPtr;
408 int fVACount; 408 int fVACount;
409 size_t fVAStride; 409 size_t fVAStride;
410 GrStencilSettings fStencilSettings; 410 GrStencilSettings fStencilSettings;
(...skipping 18 matching lines...) Expand all
429 * 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
430 */ 430 */
431 bool srcAlphaWillBeOne() const; 431 bool srcAlphaWillBeOne() const;
432 432
433 typedef SkRefCnt INHERITED; 433 typedef SkRefCnt INHERITED;
434 }; 434 };
435 435
436 GR_MAKE_BITFIELD_OPS(GrRODrawState::BlendOptFlags); 436 GR_MAKE_BITFIELD_OPS(GrRODrawState::BlendOptFlags);
437 437
438 #endif 438 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrProgramResource.cpp ('k') | src/gpu/GrRODrawState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698