| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 kP3CanvasColorSpace, | 54 kP3CanvasColorSpace, |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 enum CanvasPixelFormat { | 57 enum CanvasPixelFormat { |
| 58 kRGBA8CanvasPixelFormat, | 58 kRGBA8CanvasPixelFormat, |
| 59 kRGB10A2CanvasPixelFormat, | 59 kRGB10A2CanvasPixelFormat, |
| 60 kRGBA12CanvasPixelFormat, | 60 kRGBA12CanvasPixelFormat, |
| 61 kF16CanvasPixelFormat, | 61 kF16CanvasPixelFormat, |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 constexpr const char* kLegacyCanvasColorSpaceName = "legacy-srgb"; |
| 65 constexpr const char* kSRGBCanvasColorSpaceName = "srgb"; |
| 66 constexpr const char* kRec2020CanvasColorSpaceName = "rec2020"; |
| 67 constexpr const char* kP3CanvasColorSpaceName = "p3"; |
| 68 |
| 69 constexpr const char* kRGBA8CanvasPixelFormatName = "8-8-8-8"; |
| 70 constexpr const char* kRGB10A2CanvasPixelFormatName = "10-10-10-2"; |
| 71 constexpr const char* kRGBA12CanvasPixelFormatName = "12-12-12-12"; |
| 72 constexpr const char* kF16CanvasPixelFormatName = "float16"; |
| 73 |
| 64 class CORE_EXPORT CanvasRenderingContext | 74 class CORE_EXPORT CanvasRenderingContext |
| 65 : public GarbageCollectedFinalized<CanvasRenderingContext>, | 75 : public GarbageCollectedFinalized<CanvasRenderingContext>, |
| 66 public ScriptWrappable, | 76 public ScriptWrappable, |
| 67 public WebThread::TaskObserver { | 77 public WebThread::TaskObserver { |
| 68 WTF_MAKE_NONCOPYABLE(CanvasRenderingContext); | 78 WTF_MAKE_NONCOPYABLE(CanvasRenderingContext); |
| 69 USING_PRE_FINALIZER(CanvasRenderingContext, dispose); | 79 USING_PRE_FINALIZER(CanvasRenderingContext, dispose); |
| 70 | 80 |
| 71 public: | 81 public: |
| 72 virtual ~CanvasRenderingContext() {} | 82 virtual ~CanvasRenderingContext() {} |
| 73 | 83 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 CanvasColorSpace m_colorSpace; | 231 CanvasColorSpace m_colorSpace; |
| 222 CanvasPixelFormat m_pixelFormat; | 232 CanvasPixelFormat m_pixelFormat; |
| 223 bool m_linearPixelMath = false; | 233 bool m_linearPixelMath = false; |
| 224 CanvasContextCreationAttributes m_creationAttributes; | 234 CanvasContextCreationAttributes m_creationAttributes; |
| 225 bool m_finalizeFrameScheduled = false; | 235 bool m_finalizeFrameScheduled = false; |
| 226 }; | 236 }; |
| 227 | 237 |
| 228 } // namespace blink | 238 } // namespace blink |
| 229 | 239 |
| 230 #endif | 240 #endif |
| OLD | NEW |