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

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

Issue 695813003: Add class GrGLTextureRenderTarget for GL texture/rendertarget objects (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: forgot to save file 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 162
163 /////////////////////////////////////////////////////////////////////////// 163 ///////////////////////////////////////////////////////////////////////////
164 /// @name Render Target 164 /// @name Render Target
165 //// 165 ////
166 166
167 /** 167 /**
168 * Retrieves the currently set render-target. 168 * Retrieves the currently set render-target.
169 * 169 *
170 * @return The currently set render target. 170 * @return The currently set render target.
171 */ 171 */
172 GrRenderTarget* getRenderTarget() const { 172 GrRenderTarget* getRenderTarget() const { return fRenderTarget.get(); }
173 return static_cast<GrRenderTarget*>(fRenderTarget.getResource());
174 }
175 173
176 /// @} 174 /// @}
177 175
178 /////////////////////////////////////////////////////////////////////////// 176 ///////////////////////////////////////////////////////////////////////////
179 /// @name Stencil 177 /// @name Stencil
180 //// 178 ////
181 179
182 const GrStencilSettings& getStencil() const { return fStencilSettings; } 180 const GrStencilSettings& getStencil() const { return fStencilSettings; }
183 181
184 /// @} 182 /// @}
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 391
394 GrProgramDesc fDesc; 392 GrProgramDesc fDesc;
395 393
396 typedef SkRefCnt INHERITED; 394 typedef SkRefCnt INHERITED;
397 }; 395 };
398 396
399 GR_MAKE_BITFIELD_OPS(GrOptDrawState::BlendOptFlags); 397 GR_MAKE_BITFIELD_OPS(GrOptDrawState::BlendOptFlags);
400 398
401 #endif 399 #endif
402 400
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698