Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Side by Side Diff: third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h

Issue 1881563003: Implement OffscreenCanvas.getContext('webgl') (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: offscreenCanvas.getContext('webgl') crashes on worker Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 24 matching lines...) Expand all
35 class SkCanvas; 35 class SkCanvas;
36 36
37 namespace blink { class WebLayer; } 37 namespace blink { class WebLayer; }
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class CanvasImageSource; 41 class CanvasImageSource;
42 class HTMLCanvasElement; 42 class HTMLCanvasElement;
43 class ImageData; 43 class ImageData;
44 44
45 class CORE_EXPORT CanvasRenderingContext : public GarbageCollectedFinalized<Canv asRenderingContext>, public ScriptWrappable { 45 class CORE_EXPORT CanvasRenderingContext : public GarbageCollectedFinalized<Canv asRenderingContext> {
46 WTF_MAKE_NONCOPYABLE(CanvasRenderingContext); 46 WTF_MAKE_NONCOPYABLE(CanvasRenderingContext);
47 public: 47 public:
48 virtual ~CanvasRenderingContext() { } 48 virtual ~CanvasRenderingContext() { }
49 49
50 // A Canvas can either be "2D" or "webgl" but never both. If you request a 2 D canvas and the existing 50 // A Canvas can either be "2D" or "webgl" but never both. If you request a 2 D canvas and the existing
51 // context is already 2D, just return that. If the existing context is WebGL , then destroy it 51 // context is already 2D, just return that. If the existing context is WebGL , then destroy it
52 // before creating a new 2D context. Vice versa when requesting a WebGL canv as. Requesting a 52 // before creating a new 2D context. Vice versa when requesting a WebGL canv as. Requesting a
53 // context with any other type string will destroy any existing context. 53 // context with any other type string will destroy any existing context.
54 enum ContextType { 54 enum ContextType {
55 // Do not change assigned numbers of existing items: add new features to the end of the list. 55 // Do not change assigned numbers of existing items: add new features to the end of the list.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 private: 127 private:
128 Member<HTMLCanvasElement> m_canvas; 128 Member<HTMLCanvasElement> m_canvas;
129 HashSet<String> m_cleanURLs; 129 HashSet<String> m_cleanURLs;
130 HashSet<String> m_dirtyURLs; 130 HashSet<String> m_dirtyURLs;
131 }; 131 };
132 132
133 } // namespace blink 133 } // namespace blink
134 134
135 #endif 135 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698