| OLD | NEW |
| 1 #ifndef GraphicsContextCullSaver_h | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 #define GraphicsContextCullSaver_h | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef SKY_ENGINE_PLATFORM_GRAPHICS_GRAPHICSCONTEXTCULLSAVER_H_ |
| 6 #define SKY_ENGINE_PLATFORM_GRAPHICS_GRAPHICSCONTEXTCULLSAVER_H_ |
| 3 | 7 |
| 4 #include "sky/engine/platform/graphics/GraphicsContext.h" | 8 #include "sky/engine/platform/graphics/GraphicsContext.h" |
| 5 | 9 |
| 6 namespace blink { | 10 namespace blink { |
| 7 | 11 |
| 8 class FloatRect; | 12 class FloatRect; |
| 9 | 13 |
| 10 class GraphicsContextCullSaver { | 14 class GraphicsContextCullSaver { |
| 11 WTF_MAKE_FAST_ALLOCATED; | 15 WTF_MAKE_FAST_ALLOCATED; |
| 12 public: | 16 public: |
| (...skipping 23 matching lines...) Expand all Loading... |
| 36 m_cullApplied = true; | 40 m_cullApplied = true; |
| 37 } | 41 } |
| 38 | 42 |
| 39 private: | 43 private: |
| 40 GraphicsContext& m_context; | 44 GraphicsContext& m_context; |
| 41 bool m_cullApplied; | 45 bool m_cullApplied; |
| 42 }; | 46 }; |
| 43 | 47 |
| 44 } // namespace blink | 48 } // namespace blink |
| 45 | 49 |
| 46 #endif // GraphicsContextCullSaver_h | 50 #endif // SKY_ENGINE_PLATFORM_GRAPHICS_GRAPHICSCONTEXTCULLSAVER_H_ |
| OLD | NEW |