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

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

Issue 2387093002: Reflow comments in canvas-related folders (Closed)
Patch Set: More fix Created 4 years, 2 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 class CORE_EXPORT CanvasRenderingContext 55 class CORE_EXPORT CanvasRenderingContext
56 : public GarbageCollectedFinalized<CanvasRenderingContext>, 56 : public GarbageCollectedFinalized<CanvasRenderingContext>,
57 public ScriptWrappable { 57 public ScriptWrappable {
58 WTF_MAKE_NONCOPYABLE(CanvasRenderingContext); 58 WTF_MAKE_NONCOPYABLE(CanvasRenderingContext);
59 USING_PRE_FINALIZER(CanvasRenderingContext, dispose); 59 USING_PRE_FINALIZER(CanvasRenderingContext, dispose);
60 60
61 public: 61 public:
62 virtual ~CanvasRenderingContext() {} 62 virtual ~CanvasRenderingContext() {}
63 63
64 // A Canvas can either be "2D" or "webgl" but never both. If you request a 2D canvas and the existing 64 // A Canvas can either be "2D" or "webgl" but never both. If you request a 2D
65 // context is already 2D, just return that. If the existing context is WebGL, then destroy it 65 // canvas and the existing context is already 2D, just return that. If the
66 // before creating a new 2D context. Vice versa when requesting a WebGL canvas . Requesting a 66 // existing context is WebGL, then destroy it before creating a new 2D
67 // context with any other type string will destroy any existing context. 67 // context. Vice versa when requesting a WebGL canvas. Requesting a context
68 // with any other type string will destroy any existing context.
68 enum ContextType { 69 enum ContextType {
69 // Do not change assigned numbers of existing items: add new features to the end of the list. 70 // Do not change assigned numbers of existing items: add new features to the
71 // end of the list.
70 Context2d = 0, 72 Context2d = 0,
71 ContextExperimentalWebgl = 2, 73 ContextExperimentalWebgl = 2,
72 ContextWebgl = 3, 74 ContextWebgl = 3,
73 ContextWebgl2 = 4, 75 ContextWebgl2 = 4,
74 ContextImageBitmap = 5, 76 ContextImageBitmap = 5,
75 ContextTypeCount, 77 ContextTypeCount,
76 }; 78 };
77 79
78 static ContextType contextTypeFromId(const String& id); 80 static ContextType contextTypeFromId(const String& id);
79 static ContextType resolveContextTypeAliases(ContextType); 81 static ContextType resolveContextTypeAliases(ContextType);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 Member<OffscreenCanvas> m_offscreenCanvas; 187 Member<OffscreenCanvas> m_offscreenCanvas;
186 HashSet<String> m_cleanURLs; 188 HashSet<String> m_cleanURLs;
187 HashSet<String> m_dirtyURLs; 189 HashSet<String> m_dirtyURLs;
188 CanvasColorSpace m_colorSpace; 190 CanvasColorSpace m_colorSpace;
189 CanvasContextCreationAttributes m_creationAttributes; 191 CanvasContextCreationAttributes m_creationAttributes;
190 }; 192 };
191 193
192 } // namespace blink 194 } // namespace blink
193 195
194 #endif 196 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698