Index: Source/core/html/canvas/Canvas2DContextAttributes.h |
diff --git a/Source/core/platform/graphics/opentype/OpenTypeSanitizer.h b/Source/core/html/canvas/Canvas2DContextAttributes.h |
similarity index 68% |
copy from Source/core/platform/graphics/opentype/OpenTypeSanitizer.h |
copy to Source/core/html/canvas/Canvas2DContextAttributes.h |
index cca70cfe78c04510e12f553ca9210eca617662a8..dbf15864a60d216576bf37656f0861f5596addee 100644 |
--- a/Source/core/platform/graphics/opentype/OpenTypeSanitizer.h |
+++ b/Source/core/html/canvas/Canvas2DContextAttributes.h |
@@ -1,19 +1,15 @@ |
/* |
- * Copyright (C) 2009 Google Inc. All rights reserved. |
+ * Copyright (c) 2013, Google Inc. All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions are |
* met: |
- * |
* * Redistributions of source code must retain the above copyright |
* notice, this list of conditions and the following disclaimer. |
* * Redistributions in binary form must reproduce the above |
* copyright notice, this list of conditions and the following disclaimer |
* in the documentation and/or other materials provided with the |
* distribution. |
- * * Neither the name of Google Inc. nor the names of its |
- * contributors may be used to endorse or promote products derived from |
- * this software without specific prior written permission. |
* |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
@@ -28,28 +24,31 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef OpenTypeSanitizer_h |
-#define OpenTypeSanitizer_h |
+#ifndef Canvas2DContextAttributes_h |
+#define Canvas2DContextAttributes_h |
-#include <wtf/Forward.h> |
+#include "CanvasContextAttributes.h" |
+#include <wtf/PassRefPtr.h> |
namespace WebCore { |
-class SharedBuffer; |
- |
-class OpenTypeSanitizer { |
+class Canvas2DContextAttributes : public CanvasContextAttributes { |
public: |
- explicit OpenTypeSanitizer(SharedBuffer* buffer) |
- : m_buffer(buffer) |
- { |
- } |
+ virtual ~Canvas2DContextAttributes(); |
+ |
+ // Create a new attributes object |
+ static PassRefPtr<Canvas2DContextAttributes> create(); |
+ |
+ // Whether or not the drawing buffer has an alpha channel; default=true |
+ bool alpha() const; |
+ void setAlpha(bool); |
- PassRefPtr<SharedBuffer> sanitize(); |
+protected: |
+ Canvas2DContextAttributes(); |
-private: |
- SharedBuffer* const m_buffer; |
+ bool m_alpha; |
}; |
} // namespace WebCore |
-#endif // OpenTypeSanitizer_h |
+#endif // Canvas2DContextAttributes_h |