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

Side by Side Diff: Source/platform/graphics/GraphicsContextState.h

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 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
OLDNEW
1 // Copyright (C) 2013 Google Inc. All rights reserved. 1 // Copyright (C) 2013 Google Inc. All rights reserved.
2 // 2 //
3 // Redistribution and use in source and binary forms, with or without 3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are 4 // modification, are permitted provided that the following conditions are
5 // met: 5 // met:
6 // 6 //
7 // * Redistributions of source code must retain the above copyright 7 // * Redistributions of source code must retain the above copyright
8 // notice, this list of conditions and the following disclaimer. 8 // notice, this list of conditions and the following disclaimer.
9 // * Redistributions in binary form must reproduce the above 9 // * Redistributions in binary form must reproduce the above
10 // copyright notice, this list of conditions and the following disclaimer 10 // copyright notice, this list of conditions and the following disclaimer
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 private: 50 private:
51 friend class GraphicsContext; 51 friend class GraphicsContext;
52 52
53 static PassOwnPtr<GraphicsContextState> create() { return adoptPtr(new Graph icsContextState()); } 53 static PassOwnPtr<GraphicsContextState> create() { return adoptPtr(new Graph icsContextState()); }
54 54
55 GraphicsContextState() 55 GraphicsContextState()
56 : m_fillColor(Color::black) 56 : m_fillColor(Color::black)
57 , m_fillRule(RULE_NONZERO) 57 , m_fillRule(RULE_NONZERO)
58 , m_textDrawingMode(TextModeFill) 58 , m_textDrawingMode(TextModeFill)
59 , m_alpha(1) 59 , m_alpha(1)
60 , m_xferMode(0) 60 , m_xferMode(nullptr)
61 , m_compositeOperator(CompositeSourceOver) 61 , m_compositeOperator(CompositeSourceOver)
62 , m_blendMode(blink::WebBlendModeNormal) 62 , m_blendMode(blink::WebBlendModeNormal)
63 #if USE(LOW_QUALITY_IMAGE_INTERPOLATION) 63 #if USE(LOW_QUALITY_IMAGE_INTERPOLATION)
64 , m_interpolationQuality(InterpolationLow) 64 , m_interpolationQuality(InterpolationLow)
65 #else 65 #else
66 , m_interpolationQuality(InterpolationHigh) 66 , m_interpolationQuality(InterpolationHigh)
67 #endif 67 #endif
68 , m_saveCount(0) 68 , m_saveCount(0)
69 , m_shouldAntialias(true) 69 , m_shouldAntialias(true)
70 , m_shouldSmoothFonts(true) 70 , m_shouldSmoothFonts(true)
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 bool m_shouldAntialias : 1; 140 bool m_shouldAntialias : 1;
141 bool m_shouldSmoothFonts : 1; 141 bool m_shouldSmoothFonts : 1;
142 bool m_shouldClampToSourceRect : 1; 142 bool m_shouldClampToSourceRect : 1;
143 }; 143 };
144 144
145 } // namespace WebCore 145 } // namespace WebCore
146 146
147 #endif // GraphicsContextState_h 147 #endif // GraphicsContextState_h
148 148
OLDNEW
« no previous file with comments | « Source/platform/graphics/GraphicsContext.cpp ('k') | Source/platform/graphics/GraphicsLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698