| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DrawingRecorder_h | 5 #ifndef DrawingRecorder_h |
| 6 #define DrawingRecorder_h | 6 #define DrawingRecorder_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 | 9 |
| 10 #include "platform/geometry/FloatRect.h" | 10 #include "platform/geometry/FloatRect.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 bool canUseCachedDrawing() const { return m_canUseCachedDrawing; } | 27 bool canUseCachedDrawing() const { return m_canUseCachedDrawing; } |
| 28 | 28 |
| 29 #ifndef NDEBUG | 29 #ifndef NDEBUG |
| 30 void setClientDebugString(const WTF::String&); | 30 void setClientDebugString(const WTF::String&); |
| 31 #endif | 31 #endif |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 GraphicsContext* m_context; | 34 GraphicsContext* m_context; |
| 35 DisplayItemClient m_displayItemClient; | 35 DisplayItemClient m_displayItemClient; |
| 36 const DisplayItem::Type m_displayItemType; | 36 const DisplayItem::Type m_displayItemType; |
| 37 const FloatRect m_bounds; | |
| 38 bool m_canUseCachedDrawing; | 37 bool m_canUseCachedDrawing; |
| 39 #ifndef NDEBUG | 38 #ifndef NDEBUG |
| 39 const FloatRect m_bounds; |
| 40 WTF::String m_clientDebugString; | 40 WTF::String m_clientDebugString; |
| 41 #endif | 41 #endif |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 } // namespace blink | 44 } // namespace blink |
| 45 | 45 |
| 46 #endif // DrawingRecorder_h | 46 #endif // DrawingRecorder_h |
| OLD | NEW |