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

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

Issue 2508943003: Make OffscreenCanvas resizeable (Closed)
Patch Set: Created 4 years, 1 month 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 // Attributes and functions exposed to script 93 // Attributes and functions exposed to script
94 int width() const { return size().width(); } 94 int width() const { return size().width(); }
95 int height() const { return size().height(); } 95 int height() const { return size().height(); }
96 96
97 const IntSize& size() const { return m_size; } 97 const IntSize& size() const { return m_size; }
98 98
99 void setWidth(int, ExceptionState&); 99 void setWidth(int, ExceptionState&);
100 void setHeight(int, ExceptionState&); 100 void setHeight(int, ExceptionState&);
101 101
102 void setSize(const IntSize& newSize); 102 void setSize(const IntSize& newSize) override;
103 103
104 // Called by Document::getCSSCanvasContext as well as above getContext(). 104 // Called by Document::getCSSCanvasContext as well as above getContext().
105 CanvasRenderingContext* getCanvasRenderingContext( 105 CanvasRenderingContext* getCanvasRenderingContext(
106 const String&, 106 const String&,
107 const CanvasContextCreationAttributes&); 107 const CanvasContextCreationAttributes&);
108 108
109 bool isPaintable() const; 109 bool isPaintable() const;
110 110
111 String toDataURL(const String& mimeType, 111 String toDataURL(const String& mimeType,
112 const ScriptValue& qualityArgument, 112 const ScriptValue& qualityArgument,
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 // Used for OffscreenCanvas that controls this HTML canvas element 304 // Used for OffscreenCanvas that controls this HTML canvas element
305 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; 305 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge;
306 306
307 int m_numFramesSinceLastRenderingModeSwitch; 307 int m_numFramesSinceLastRenderingModeSwitch;
308 bool m_pendingRenderingModeSwitch; 308 bool m_pendingRenderingModeSwitch;
309 }; 309 };
310 310
311 } // namespace blink 311 } // namespace blink
312 312
313 #endif // HTMLCanvasElement_h 313 #endif // HTMLCanvasElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698