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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/GraphicsContext.h

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: Created 3 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2008-2009 Torch Mobile, Inc. 3 * Copyright (C) 2008-2009 Torch Mobile, Inc.
4 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 PaintController& getPaintController() { return m_paintController; } 85 PaintController& getPaintController() { return m_paintController; }
86 const ColorBehavior& getColorBehavior() const { return m_colorBehavior; } 86 const ColorBehavior& getColorBehavior() const { return m_colorBehavior; }
87 87
88 bool contextDisabled() const { return m_disabledState; } 88 bool contextDisabled() const { return m_disabledState; }
89 89
90 // ---------- State management methods ----------------- 90 // ---------- State management methods -----------------
91 void save(); 91 void save();
92 void restore(); 92 void restore();
93 93
94 #if ENABLE(ASSERT) 94 #if DCHECK_IS_ON()
95 unsigned saveCount() const; 95 unsigned saveCount() const;
96 #endif 96 #endif
97 97
98 float strokeThickness() const { 98 float strokeThickness() const {
99 return immutableState()->getStrokeData().thickness(); 99 return immutableState()->getStrokeData().thickness();
100 } 100 }
101 void setStrokeThickness(float thickness) { 101 void setStrokeThickness(float thickness) {
102 mutableState()->setStrokeThickness(thickness); 102 mutableState()->setStrokeThickness(thickness);
103 } 103 }
104 104
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 462
463 float m_deviceScaleFactor; 463 float m_deviceScaleFactor;
464 464
465 unsigned m_printing : 1; 465 unsigned m_printing : 1;
466 unsigned m_hasMetaData : 1; 466 unsigned m_hasMetaData : 1;
467 }; 467 };
468 468
469 } // namespace blink 469 } // namespace blink
470 470
471 #endif // GraphicsContext_h 471 #endif // GraphicsContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698