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

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

Issue 579403003: Move IOType to GrGpuRef and rename that to GrIORef. Template GrPendingIORef on IOType. (Closed) Base URL: https://skia.googlesource.com/skia.git@ref
Patch Set: rebase again 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 | « include/gpu/GrGpuResourceRef.h ('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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 /////////////////////////////////////////////////////////////////////////// 398 ///////////////////////////////////////////////////////////////////////////
399 /// @name Render Target 399 /// @name Render Target
400 //// 400 ////
401 401
402 /** 402 /**
403 * Sets the render-target used at the next drawing call 403 * Sets the render-target used at the next drawing call
404 * 404 *
405 * @param target The render target to set. 405 * @param target The render target to set.
406 */ 406 */
407 void setRenderTarget(GrRenderTarget* target) { 407 void setRenderTarget(GrRenderTarget* target) {
408 fRenderTarget.set(SkSafeRef(target), GrGpuResourceRef::kWrite_IOType); 408 fRenderTarget.set(SkSafeRef(target), GrIORef::kWrite_IOType);
409 this->invalidateOptState(); 409 this->invalidateOptState();
410 } 410 }
411 411
412 /// @} 412 /// @}
413 413
414 /////////////////////////////////////////////////////////////////////////// 414 ///////////////////////////////////////////////////////////////////////////
415 /// @name Stencil 415 /// @name Stencil
416 //// 416 ////
417 417
418 /** 418 /**
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 SkDEBUGCODE(int fBlockEffectRemovalCnt;) 559 SkDEBUGCODE(int fBlockEffectRemovalCnt;)
560 560
561 void internalSetVertexAttribs(const GrVertexAttrib attribs[], int count, siz e_t stride); 561 void internalSetVertexAttribs(const GrVertexAttrib attribs[], int count, siz e_t stride);
562 562
563 mutable GrOptDrawState* fCachedOptState; 563 mutable GrOptDrawState* fCachedOptState;
564 564
565 typedef GrRODrawState INHERITED; 565 typedef GrRODrawState INHERITED;
566 }; 566 };
567 567
568 #endif 568 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrGpuResourceRef.h ('k') | src/gpu/GrGpuResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698