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

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

Issue 2632593003: Notify listeners on OffScreenCanvas changes (Closed)
Patch Set: Created 3 years, 11 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
211 211
212 // OffscreenCanvasPlaceholder implementation.
213 void setPlaceholderFrame(RefPtr<StaticBitmapImage>,
214 WeakPtr<OffscreenCanvasFrameDispatcher>,
215 RefPtr<WebTaskRunner>,
216 unsigned resourceId) override;
212 DECLARE_VIRTUAL_TRACE(); 217 DECLARE_VIRTUAL_TRACE();
213 218
214 DECLARE_VIRTUAL_TRACE_WRAPPERS(); 219 DECLARE_VIRTUAL_TRACE_WRAPPERS();
215 220
216 void createImageBufferUsingSurfaceForTesting( 221 void createImageBufferUsingSurfaceForTesting(
217 std::unique_ptr<ImageBufferSurface>); 222 std::unique_ptr<ImageBufferSurface>);
218 223
219 static void registerRenderingContextFactory( 224 static void registerRenderingContextFactory(
220 std::unique_ptr<CanvasRenderingContextFactory>); 225 std::unique_ptr<CanvasRenderingContextFactory>);
221 void updateExternallyAllocatedMemory() const; 226 void updateExternallyAllocatedMemory() const;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 // Used for OffscreenCanvas that controls this HTML canvas element 317 // Used for OffscreenCanvas that controls this HTML canvas element
313 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; 318 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge;
314 319
315 int m_numFramesSinceLastRenderingModeSwitch; 320 int m_numFramesSinceLastRenderingModeSwitch;
316 bool m_pendingRenderingModeSwitch; 321 bool m_pendingRenderingModeSwitch;
317 }; 322 };
318 323
319 } // namespace blink 324 } // namespace blink
320 325
321 #endif // HTMLCanvasElement_h 326 #endif // HTMLCanvasElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698