Move `filter` method from `CanvasRenderingContext2D` extern to `BaseRenderingContext2D` because it's also present in `OffscreenCanvasRenderingContext2D`.
@@ -909,6 +909,12 @@ BaseRenderingContext2D.prototype.lineDashOffset;
*/
BaseRenderingContext2D.prototype.direction;
+/**
+ * @type {string}
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/filter
+ */
+BaseRenderingContext2D.prototype.filter;
+
/**
* @constructor
* @extends {BaseRenderingContext2D}
@@ -919,12 +925,6 @@ function CanvasRenderingContext2D() {}
/** @const {!HTMLCanvasElement} */
CanvasRenderingContext2D.prototype.canvas;
-/**
- * @type {string}
- * @see https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/filter
- */
-CanvasRenderingContext2D.prototype.filter;
-
/**
* @constructor
* @extends {BaseRenderingContext2D}
