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

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

Issue 608883003: GrResourceCache2 manages scratch texture. (Closed) Base URL: https://skia.googlesource.com/skia.git@surfimpl
Patch Set: remove todo Created 6 years, 2 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/GrContext.cpp ('k') | src/gpu/GrGpuResource.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 2011 Google Inc. 2 * Copyright 2011 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 GrDrawState_DEFINED 8 #ifndef GrDrawState_DEFINED
9 #define GrDrawState_DEFINED 9 #define GrDrawState_DEFINED
10 10
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 GrRenderTarget* getRenderTarget() const { 503 GrRenderTarget* getRenderTarget() const {
504 return static_cast<GrRenderTarget*>(fRenderTarget.getResource()); 504 return static_cast<GrRenderTarget*>(fRenderTarget.getResource());
505 } 505 }
506 506
507 /** 507 /**
508 * Sets the render-target used at the next drawing call 508 * Sets the render-target used at the next drawing call
509 * 509 *
510 * @param target The render target to set. 510 * @param target The render target to set.
511 */ 511 */
512 void setRenderTarget(GrRenderTarget* target) { 512 void setRenderTarget(GrRenderTarget* target) {
513 fRenderTarget.set(SkSafeRef(target), GrIORef::kWrite_IOType); 513 fRenderTarget.set(SkSafeRef(target), kWrite_GrIOType);
514 this->invalidateOptState(); 514 this->invalidateOptState();
515 } 515 }
516 516
517 /// @} 517 /// @}
518 518
519 /////////////////////////////////////////////////////////////////////////// 519 ///////////////////////////////////////////////////////////////////////////
520 /// @name Stencil 520 /// @name Stencil
521 //// 521 ////
522 522
523 const GrStencilSettings& getStencil() const { return fStencilSettings; } 523 const GrStencilSettings& getStencil() const { return fStencilSettings; }
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 mutable uint32_t fCachedCapsID; 822 mutable uint32_t fCachedCapsID;
823 823
824 friend class GrOptDrawState; 824 friend class GrOptDrawState;
825 825
826 typedef SkRefCnt INHERITED; 826 typedef SkRefCnt INHERITED;
827 }; 827 };
828 828
829 GR_MAKE_BITFIELD_OPS(GrDrawState::BlendOptFlags); 829 GR_MAKE_BITFIELD_OPS(GrDrawState::BlendOptFlags);
830 830
831 #endif 831 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrGpuResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698