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

Unified Diff: third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h

Issue 2849463005: Refactor ImageBuffer to make OffscreenCanvas match HTMLCanvasElement (Closed)
Patch Set: x Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
diff --git a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
index c515145aaced8e23fc909c56a2a529c7b829ded0..1f994a34aecebcf366194bba3ee2b09f4c45314e 100644
--- a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
+++ b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
@@ -59,6 +59,9 @@ class MODULES_EXPORT OffscreenCanvasRenderingContext2D final
PassRefPtr<Image> GetImage(AccelerationHint, SnapshotReason) const final;
ImageData* ToImageData(SnapshotReason) override;
void Reset() override;
+ void RestoreCanvasMatrixClipStack(PaintCanvas* c) const override {
+ RestoreMatrixClipStack(c);
+ }
// BaseRenderingContext2D implementation
bool OriginClean() const final;
@@ -107,9 +110,6 @@ class MODULES_EXPORT OffscreenCanvasRenderingContext2D final
}
private:
- bool needs_matrix_clip_restore_ = false;
- std::unique_ptr<ImageBuffer> image_buffer_;
-
bool IsPaintable() const final;
RefPtr<StaticBitmapImage> TransferToStaticBitmapImage();

Powered by Google App Engine
This is Rietveld 408576698