| Index: third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
|
| index 214e2d25363f92b0efe82842f800dbe4df4f6f60..f89f167b26864c2ca3600ad1cf52096574df7155 100644
|
| --- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
|
| +++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
|
| @@ -26,6 +26,7 @@
|
| #include "core/html/canvas/CanvasRenderingContext.h"
|
|
|
| #include "core/html/canvas/CanvasImageSource.h"
|
| +#include "platform/RuntimeEnabledFeatures.h"
|
| #include "platform/weborigin/SecurityOrigin.h"
|
|
|
| namespace blink {
|
| @@ -45,7 +46,9 @@ CanvasRenderingContext::ContextType CanvasRenderingContext::contextTypeFromId(co
|
| return ContextWebgl;
|
| if (id == "webgl2")
|
| return ContextWebgl2;
|
| -
|
| + if (id == "imagebitmap" && RuntimeEnabledFeatures::experimentalCanvasFeaturesEnabled()) {
|
| + return ContextImageBitmap;
|
| + }
|
| return ContextTypeCount;
|
| }
|
|
|
|
|