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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 static ContextType ContextTypeFromId(const String& id); | 87 static ContextType ContextTypeFromId(const String& id); |
88 static ContextType ResolveContextTypeAliases(ContextType); | 88 static ContextType ResolveContextTypeAliases(ContextType); |
89 | 89 |
90 CanvasRenderingContextHost* host() const { return host_; } | 90 CanvasRenderingContextHost* host() const { return host_; } |
91 | 91 |
92 WTF::String ColorSpaceAsString() const; | 92 WTF::String ColorSpaceAsString() const; |
93 WTF::String PixelFormatAsString() const; | 93 WTF::String PixelFormatAsString() const; |
94 | 94 |
95 const CanvasColorParams& color_params() const { return color_params_; } | 95 const CanvasColorParams& color_params() const { return color_params_; } |
96 ColorBehavior ColorBehaviorForMediaDrawnToCanvas() const; | |
97 | 96 |
98 virtual PassRefPtr<Image> GetImage(AccelerationHint, | 97 virtual PassRefPtr<Image> GetImage(AccelerationHint, |
99 SnapshotReason) const = 0; | 98 SnapshotReason) const = 0; |
100 virtual ImageData* ToImageData(SnapshotReason reason) { return nullptr; } | 99 virtual ImageData* ToImageData(SnapshotReason reason) { return nullptr; } |
101 virtual ContextType GetContextType() const = 0; | 100 virtual ContextType GetContextType() const = 0; |
102 virtual bool IsComposited() const = 0; | 101 virtual bool IsComposited() const = 0; |
103 virtual bool IsAccelerated() const = 0; | 102 virtual bool IsAccelerated() const = 0; |
104 virtual bool ShouldAntialias() const { return false; } | 103 virtual bool ShouldAntialias() const { return false; } |
105 virtual void SetIsHidden(bool) = 0; | 104 virtual void SetIsHidden(bool) = 0; |
106 virtual bool isContextLost() const { return true; } | 105 virtual bool isContextLost() const { return true; } |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 HashSet<String> clean_urls_; | 205 HashSet<String> clean_urls_; |
207 HashSet<String> dirty_urls_; | 206 HashSet<String> dirty_urls_; |
208 CanvasColorParams color_params_; | 207 CanvasColorParams color_params_; |
209 CanvasContextCreationAttributes creation_attributes_; | 208 CanvasContextCreationAttributes creation_attributes_; |
210 bool finalize_frame_scheduled_ = false; | 209 bool finalize_frame_scheduled_ = false; |
211 }; | 210 }; |
212 | 211 |
213 } // namespace blink | 212 } // namespace blink |
214 | 213 |
215 #endif | 214 #endif |
OLD | NEW |