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

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

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem Created 3 years, 10 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) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 // Used for canvas capture. 131 // Used for canvas capture.
132 void addListener(CanvasDrawListener*); 132 void addListener(CanvasDrawListener*);
133 void removeListener(CanvasDrawListener*); 133 void removeListener(CanvasDrawListener*);
134 134
135 // Used for rendering 135 // Used for rendering
136 void didDraw(const FloatRect&); 136 void didDraw(const FloatRect&);
137 137
138 void paint(GraphicsContext&, const LayoutRect&); 138 void paint(GraphicsContext&, const LayoutRect&);
139 139
140 SkCanvas* drawingCanvas() const; 140 PaintCanvas* drawingCanvas() const;
141 void disableDeferral(DisableDeferralReason) const; 141 void disableDeferral(DisableDeferralReason) const;
142 SkCanvas* existingDrawingCanvas() const; 142 PaintCanvas* existingDrawingCanvas() const;
143 143
144 CanvasRenderingContext* renderingContext() const { return m_context.get(); } 144 CanvasRenderingContext* renderingContext() const { return m_context.get(); }
145 145
146 void ensureUnacceleratedImageBuffer(); 146 void ensureUnacceleratedImageBuffer();
147 ImageBuffer* buffer() const; 147 ImageBuffer* buffer() const;
148 PassRefPtr<Image> copiedImage(SourceDrawingBuffer, 148 PassRefPtr<Image> copiedImage(SourceDrawingBuffer,
149 AccelerationHint, 149 AccelerationHint,
150 SnapshotReason) const; 150 SnapshotReason) const;
151 void clearCopiedImage(); 151 void clearCopiedImage();
152 152
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 int sourceHeight() override { return m_size.height(); } 190 int sourceHeight() override { return m_size.height(); }
191 191
192 // CanvasSurfaceLayerBridgeObserver implementation 192 // CanvasSurfaceLayerBridgeObserver implementation
193 void OnWebLayerReplaced() override; 193 void OnWebLayerReplaced() override;
194 194
195 // ImageBufferClient implementation 195 // ImageBufferClient implementation
196 void notifySurfaceInvalid() override; 196 void notifySurfaceInvalid() override;
197 bool isDirty() override { return !m_dirtyRect.isEmpty(); } 197 bool isDirty() override { return !m_dirtyRect.isEmpty(); }
198 void didDisableAcceleration() override; 198 void didDisableAcceleration() override;
199 void didFinalizeFrame() override; 199 void didFinalizeFrame() override;
200 void restoreCanvasMatrixClipStack(SkCanvas*) const override; 200 void restoreCanvasMatrixClipStack(PaintCanvas*) const override;
201 201
202 void doDeferredPaintInvalidation(); 202 void doDeferredPaintInvalidation();
203 203
204 // ImageBitmapSource implementation 204 // ImageBitmapSource implementation
205 IntSize bitmapSourceSize() const override; 205 IntSize bitmapSourceSize() const override;
206 ScriptPromise createImageBitmap(ScriptState*, 206 ScriptPromise createImageBitmap(ScriptState*,
207 EventTarget&, 207 EventTarget&,
208 Optional<IntRect> cropRect, 208 Optional<IntRect> cropRect,
209 const ImageBitmapOptions&, 209 const ImageBitmapOptions&,
210 ExceptionState&) override; 210 ExceptionState&) override;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 // Used for OffscreenCanvas that controls this HTML canvas element 312 // Used for OffscreenCanvas that controls this HTML canvas element
313 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; 313 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge;
314 314
315 int m_numFramesSinceLastRenderingModeSwitch; 315 int m_numFramesSinceLastRenderingModeSwitch;
316 bool m_pendingRenderingModeSwitch; 316 bool m_pendingRenderingModeSwitch;
317 }; 317 };
318 318
319 } // namespace blink 319 } // namespace blink
320 320
321 #endif // HTMLCanvasElement_h 321 #endif // HTMLCanvasElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.cpp ('k') | third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698