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

Side by Side Diff: src/gpu/gl/GrGpuGL.h

Issue 12426019: Fix divide-by-zero in program cache tracking (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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 | « no previous file | src/gpu/gl/GrGpuGL_program.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 8
9 9
10 #ifndef GrGpuGL_DEFINED 10 #ifndef GrGpuGL_DEFINED
11 #define GrGpuGL_DEFINED 11 #define GrGpuGL_DEFINED
12 12
13 13
14 #include "GrBinHashKey.h" 14 #include "GrBinHashKey.h"
15 #include "GrDrawState.h" 15 #include "GrDrawState.h"
16 #include "GrGpu.h" 16 #include "GrGpu.h"
17 #include "GrGLContext.h" 17 #include "GrGLContext.h"
18 #include "GrGLIndexBuffer.h" 18 #include "GrGLIndexBuffer.h"
19 #include "GrGLIRect.h" 19 #include "GrGLIRect.h"
20 #include "GrGLProgram.h" 20 #include "GrGLProgram.h"
21 #include "GrGLStencilBuffer.h" 21 #include "GrGLStencilBuffer.h"
22 #include "GrGLTexture.h" 22 #include "GrGLTexture.h"
23 #include "GrGLVertexArray.h" 23 #include "GrGLVertexArray.h"
24 #include "GrGLVertexBuffer.h" 24 #include "GrGLVertexBuffer.h"
25 #include "../GrTHashCache.h" 25 #include "../GrTHashCache.h"
26 26
27 #ifdef SK_DEBUG 27 #ifdef SK_DEVELOPER
28 #define PROGRAM_CACHE_STATS 28 #define PROGRAM_CACHE_STATS
29 #endif 29 #endif
30 30
31 class GrGpuGL : public GrGpu { 31 class GrGpuGL : public GrGpu {
32 public: 32 public:
33 GrGpuGL(const GrGLContext& ctx, GrContext* context); 33 GrGpuGL(const GrGLContext& ctx, GrContext* context);
34 virtual ~GrGpuGL(); 34 virtual ~GrGpuGL();
35 35
36 const GrGLInterface* glInterface() const { return fGLContext.interface(); } 36 const GrGLInterface* glInterface() const { return fGLContext.interface(); }
37 GrGLBinding glBinding() const { return fGLContext.info().binding(); } 37 GrGLBinding glBinding() const { return fGLContext.info().binding(); }
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 // we record what stencil format worked last time to hopefully exit early 430 // we record what stencil format worked last time to hopefully exit early
431 // from our loop that tries stencil formats and calls check fb status. 431 // from our loop that tries stencil formats and calls check fb status.
432 int fLastSuccessfulStencilFmtIdx; 432 int fLastSuccessfulStencilFmtIdx;
433 433
434 bool fPrintedCaps; 434 bool fPrintedCaps;
435 435
436 typedef GrGpu INHERITED; 436 typedef GrGpu INHERITED;
437 }; 437 };
438 438
439 #endif 439 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGpuGL_program.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698