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

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

Issue 2808493002: [blink] Request compositing update when canvas hibernates/wakes up. (Closed)
Patch Set: rebase 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 int SourceWidth() override { return size_.Width(); } 197 int SourceWidth() override { return size_.Width(); }
198 int SourceHeight() override { return size_.Height(); } 198 int SourceHeight() override { return size_.Height(); }
199 199
200 // CanvasSurfaceLayerBridgeObserver implementation 200 // CanvasSurfaceLayerBridgeObserver implementation
201 void OnWebLayerReplaced() override; 201 void OnWebLayerReplaced() override;
202 202
203 // ImageBufferClient implementation 203 // ImageBufferClient implementation
204 void NotifySurfaceInvalid() override; 204 void NotifySurfaceInvalid() override;
205 void DidDisableAcceleration() override; 205 void DidDisableAcceleration() override;
206 void RestoreCanvasMatrixClipStack(PaintCanvas*) const override; 206 void RestoreCanvasMatrixClipStack(PaintCanvas*) const override;
207 void SetNeedsCompositingUpdate() override;
207 208
208 // ImageBitmapSource implementation 209 // ImageBitmapSource implementation
209 IntSize BitmapSourceSize() const override; 210 IntSize BitmapSourceSize() const override;
210 ScriptPromise CreateImageBitmap(ScriptState*, 211 ScriptPromise CreateImageBitmap(ScriptState*,
211 EventTarget&, 212 EventTarget&,
212 Optional<IntRect> crop_rect, 213 Optional<IntRect> crop_rect,
213 const ImageBitmapOptions&, 214 const ImageBitmapOptions&,
214 ExceptionState&) override; 215 ExceptionState&) override;
215 216
216 // OffscreenCanvasPlaceholder implementation. 217 // OffscreenCanvasPlaceholder implementation.
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 std::unique_ptr<CanvasSurfaceLayerBridge> surface_layer_bridge_; 323 std::unique_ptr<CanvasSurfaceLayerBridge> surface_layer_bridge_;
323 324
324 int num_frames_since_last_rendering_mode_switch_; 325 int num_frames_since_last_rendering_mode_switch_;
325 bool pending_rendering_mode_switch_; 326 bool pending_rendering_mode_switch_;
326 bool did_notify_listeners_for_current_frame_ = false; 327 bool did_notify_listeners_for_current_frame_ = false;
327 }; 328 };
328 329
329 } // namespace blink 330 } // namespace blink
330 331
331 #endif // HTMLCanvasElement_h 332 #endif // HTMLCanvasElement_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698