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

Unified Diff: sky/engine/platform/graphics/GraphicsContextCullSaver.h

Issue 812543002: Update from https://crrev.com/308331 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: sky/engine/platform/graphics/GraphicsContextCullSaver.h
diff --git a/sky/engine/platform/graphics/GraphicsContextCullSaver.h b/sky/engine/platform/graphics/GraphicsContextCullSaver.h
deleted file mode 100644
index 7ea99f4c7ba8a2ebd3567b747feb270248c17226..0000000000000000000000000000000000000000
--- a/sky/engine/platform/graphics/GraphicsContextCullSaver.h
+++ /dev/null
@@ -1,46 +0,0 @@
-#ifndef GraphicsContextCullSaver_h
-#define GraphicsContextCullSaver_h
-
-#include "sky/engine/platform/graphics/GraphicsContext.h"
-
-namespace blink {
-
-class FloatRect;
-
-class GraphicsContextCullSaver {
- WTF_MAKE_FAST_ALLOCATED;
-public:
- GraphicsContextCullSaver(GraphicsContext& context)
- : m_context(context)
- , m_cullApplied(false)
- {
- }
-
- GraphicsContextCullSaver(GraphicsContext& context, const FloatRect& rect)
- : m_context(context)
- , m_cullApplied(true)
- {
- context.beginCull(rect);
- }
-
- ~GraphicsContextCullSaver()
- {
- if (m_cullApplied)
- m_context.endCull();
- }
-
- void cull(const FloatRect& rect)
- {
- ASSERT(!m_cullApplied);
- m_context.beginCull(rect);
- m_cullApplied = true;
- }
-
-private:
- GraphicsContext& m_context;
- bool m_cullApplied;
-};
-
-} // namespace blink
-
-#endif // GraphicsContextCullSaver_h
« no previous file with comments | « sky/engine/platform/graphics/GraphicsContext.cpp ('k') | sky/engine/platform/graphics/GraphicsContextRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698