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

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

Issue 19569012: Turn on -Wall -Wextra on Mac, and fix all the warnings that crop up for /usr/bin/g++ and Clang 3.3. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: nit Created 7 years, 5 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/GrDrawState.h ('k') | src/utils/SkLayer.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 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SkRefCnt.h" 9 #include "SkRefCnt.h"
10 10
11 #ifndef GrDrawTargetCaps_DEFINED 11 #ifndef GrDrawTargetCaps_DEFINED
12 #define GrDrawTargetCaps_DEFINED 12 #define GrDrawTargetCaps_DEFINED
13 13
14 /** 14 /**
15 * Represents the draw target capabilities. 15 * Represents the draw target capabilities.
16 */ 16 */
17 class GrDrawTargetCaps : public SkRefCnt { 17 class GrDrawTargetCaps : public SkRefCnt {
18 public: 18 public:
19 SK_DECLARE_INST_COUNT(Caps) 19 SK_DECLARE_INST_COUNT(Caps)
20 20
21 GrDrawTargetCaps() { this->reset(); } 21 GrDrawTargetCaps() { this->reset(); }
22 GrDrawTargetCaps(const GrDrawTargetCaps& other) { *this = other; } 22 GrDrawTargetCaps(const GrDrawTargetCaps& other) : INHERITED() { *this = othe r; }
23 GrDrawTargetCaps& operator= (const GrDrawTargetCaps&); 23 GrDrawTargetCaps& operator= (const GrDrawTargetCaps&);
24 24
25 virtual void reset(); 25 virtual void reset();
26 virtual void print() const; 26 virtual void print() const;
27 27
28 bool eightBitPaletteSupport() const { return f8BitPaletteSupport; } 28 bool eightBitPaletteSupport() const { return f8BitPaletteSupport; }
29 bool npotTextureTileSupport() const { return fNPOTTextureTileSupport; } 29 bool npotTextureTileSupport() const { return fNPOTTextureTileSupport; }
30 bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; } 30 bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; }
31 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } 31 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; }
32 bool hwAALineSupport() const { return fHWAALineSupport; } 32 bool hwAALineSupport() const { return fHWAALineSupport; }
(...skipping 25 matching lines...) Expand all
58 bool fReuseScratchTextures : 1; 58 bool fReuseScratchTextures : 1;
59 59
60 int fMaxRenderTargetSize; 60 int fMaxRenderTargetSize;
61 int fMaxTextureSize; 61 int fMaxTextureSize;
62 int fMaxSampleCount; 62 int fMaxSampleCount;
63 63
64 typedef SkRefCnt INHERITED; 64 typedef SkRefCnt INHERITED;
65 }; 65 };
66 66
67 #endif 67 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawState.h ('k') | src/utils/SkLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698