summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/platform/graphics/graphics_context_state_saver.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/platform/graphics/graphics_context_state_saver.h')
-rw-r--r--chromium/third_party/blink/renderer/platform/graphics/graphics_context_state_saver.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/chromium/third_party/blink/renderer/platform/graphics/graphics_context_state_saver.h b/chromium/third_party/blink/renderer/platform/graphics/graphics_context_state_saver.h
index 29539cc5e0b..1236ec8c251 100644
--- a/chromium/third_party/blink/renderer/platform/graphics/graphics_context_state_saver.h
+++ b/chromium/third_party/blink/renderer/platform/graphics/graphics_context_state_saver.h
@@ -29,7 +29,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_GRAPHICS_CONTEXT_STATE_SAVER_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_GRAPHICS_CONTEXT_STATE_SAVER_H_
-#include "base/macros.h"
#include "third_party/blink/renderer/platform/graphics/graphics_context.h"
#include "third_party/blink/renderer/platform/platform_export.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
@@ -47,6 +46,10 @@ class PLATFORM_EXPORT GraphicsContextStateSaver final {
context_.Save();
}
+ GraphicsContextStateSaver(const GraphicsContextStateSaver&) = delete;
+ GraphicsContextStateSaver& operator=(const GraphicsContextStateSaver&) =
+ delete;
+
~GraphicsContextStateSaver() {
if (save_and_restore_)
context_.Restore();
@@ -76,8 +79,6 @@ class PLATFORM_EXPORT GraphicsContextStateSaver final {
private:
GraphicsContext& context_;
bool save_and_restore_;
-
- DISALLOW_COPY_AND_ASSIGN(GraphicsContextStateSaver);
};
} // namespace blink