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

Unified Diff: Source/core/html/HTMLCanvasElement.cpp

Issue 488433003: Remove unused enum declaration ContextWebkit3d from HTMLCanvasElement::getContext() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLCanvasElement.cpp
diff --git a/Source/core/html/HTMLCanvasElement.cpp b/Source/core/html/HTMLCanvasElement.cpp
index e84eacf3bb509305325d62e996b246c48cc15f87..b067e455cf0ce13dee3e6309be202afcb518f97b 100644
--- a/Source/core/html/HTMLCanvasElement.cpp
+++ b/Source/core/html/HTMLCanvasElement.cpp
@@ -152,11 +152,10 @@ CanvasRenderingContext* HTMLCanvasElement::getContext(const String& type, Canvas
// before creating a new 2D context. Vice versa when requesting a WebGL canvas. Requesting a
// context with any other type string will destroy any existing context.
enum ContextType {
- Context2d,
- ContextWebkit3d,
- ContextExperimentalWebgl,
- ContextWebgl,
- // Only add new items to the end and keep the order of existing items.
+ // Do not change assigned numbers of existing items: add new features to the end of the list.
+ Context2d = 0,
+ ContextExperimentalWebgl = 2,
+ ContextWebgl = 3,
ContextTypeCount,
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698