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

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

Issue 22850006: Replace uses of GrAssert by SkASSERT. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/gpu/GrEffect.cpp ('k') | src/gpu/GrGpu.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 GrGpu_DEFINED 8 #ifndef GrGpu_DEFINED
9 #define GrGpu_DEFINED 9 #define GrGpu_DEFINED
10 10
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 // This timestamp can be used to lazily detect when cached 3D context state 288 // This timestamp can be used to lazily detect when cached 3D context state
289 // is dirty. 289 // is dirty.
290 ResetTimestamp getResetTimestamp() const { 290 ResetTimestamp getResetTimestamp() const {
291 return fResetTimestamp; 291 return fResetTimestamp;
292 } 292 }
293 293
294 /** 294 /**
295 * Can the provided configuration act as a color render target? 295 * Can the provided configuration act as a color render target?
296 */ 296 */
297 bool isConfigRenderable(GrPixelConfig config) const { 297 bool isConfigRenderable(GrPixelConfig config) const {
298 GrAssert(kGrPixelConfigCnt > config); 298 SkASSERT(kGrPixelConfigCnt > config);
299 return fConfigRenderSupport[config]; 299 return fConfigRenderSupport[config];
300 } 300 }
301 301
302 /** 302 /**
303 * These methods are called by the clip manager's setupClipping function 303 * These methods are called by the clip manager's setupClipping function
304 * which (called as part of GrGpu's implementation of onDraw and 304 * which (called as part of GrGpu's implementation of onDraw and
305 * onStencilPath member functions.) The GrGpu subclass should flush the 305 * onStencilPath member functions.) The GrGpu subclass should flush the
306 * stencil state to the 3D API in its implementation of flushGraphicsState. 306 * stencil state to the 3D API in its implementation of flushGraphicsState.
307 */ 307 */
308 void enableScissor(const SkIRect& rect) { 308 void enableScissor(const SkIRect& rect) {
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 // these are mutable so they can be created on-demand 530 // these are mutable so they can be created on-demand
531 mutable GrIndexBuffer* fQuadInd exBuffer; 531 mutable GrIndexBuffer* fQuadInd exBuffer;
532 // Used to abandon/release all resources created by this GrGpu. TODO: Move t his 532 // Used to abandon/release all resources created by this GrGpu. TODO: Move t his
533 // functionality to GrResourceCache. 533 // functionality to GrResourceCache.
534 ResourceList fResourc eList; 534 ResourceList fResourc eList;
535 535
536 typedef GrDrawTarget INHERITED; 536 typedef GrDrawTarget INHERITED;
537 }; 537 };
538 538
539 #endif 539 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrEffect.cpp ('k') | src/gpu/GrGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698