diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-05-15 10:20:33 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-05-15 10:28:57 +0000 |
commit | d17ea114e5ef69ad5d5d7413280a13e6428098aa (patch) | |
tree | 2c01a75df69f30d27b1432467cfe7c1467a498da /chromium/third_party/blink/renderer/core/html/canvas/canvas_context_creation_attributes_core.h | |
parent | 8c5c43c7b138c9b4b0bf56d946e61d3bbc111bec (diff) | |
download | qtwebengine-chromium-d17ea114e5ef69ad5d5d7413280a13e6428098aa.tar.gz |
BASELINE: Update Chromium to 67.0.3396.47
Change-Id: Idcb1341782e417561a2473eeecc82642dafda5b7
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/core/html/canvas/canvas_context_creation_attributes_core.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/html/canvas/canvas_context_creation_attributes_core.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/core/html/canvas/canvas_context_creation_attributes_core.h b/chromium/third_party/blink/renderer/core/html/canvas/canvas_context_creation_attributes_core.h new file mode 100644 index 00000000000..298e186289a --- /dev/null +++ b/chromium/third_party/blink/renderer/core/html/canvas/canvas_context_creation_attributes_core.h @@ -0,0 +1,43 @@ +// Copyright 2018 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_HTML_CANVAS_CANVAS_CONTEXT_CREATION_ATTRIBUTES_CORE_H_ +#define THIRD_PARTY_BLINK_RENDERER_CORE_HTML_CANVAS_CANVAS_CONTEXT_CREATION_ATTRIBUTES_CORE_H_ + +#include "third_party/blink/renderer/core/core_export.h" +#include "third_party/blink/renderer/core/dom/events/event_target.h" +#include "third_party/blink/renderer/platform/heap/handle.h" +#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h" + +namespace blink { + +class CORE_EXPORT CanvasContextCreationAttributesCore { + DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); + + public: + CanvasContextCreationAttributesCore(); + CanvasContextCreationAttributesCore( + blink::CanvasContextCreationAttributesCore const&); + virtual ~CanvasContextCreationAttributesCore(); + + bool alpha = true; + bool antialias = true; + String color_space = "srgb"; + bool depth = true; + bool fail_if_major_performance_caveat = false; + bool low_latency = false; + String pixel_format = "8-8-8-8"; + bool premultiplied_alpha = true; + bool preserve_drawing_buffer = false; + bool stencil = false; + + // This attribute is of type XRDevice, defined in modules/xr/XRDevice.h + Member<EventTargetWithInlineData> compatible_xr_device; + + void Trace(blink::Visitor*); +}; + +} // namespace blink + +#endif // CanvasContextCreationAttributes_h |