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

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

Issue 1488763002: Start an empty interface OffScreenCanvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up Created 5 years 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef OffScreenCanvas_h
6 #define OffScreenCanvas_h
7
8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/CoreExport.h"
10 #include "platform/geometry/IntSize.h"
11 #include "platform/heap/Handle.h"
12
13 namespace blink {
14
15 class ImageBitmap;
16
17 class CORE_EXPORT OffScreenCanvas final : public GarbageCollectedFinalized<OffSc reenCanvas>, public ScriptWrappable {
18 DEFINE_WRAPPERTYPEINFO();
19 public:
20 static OffScreenCanvas* create(unsigned long width, unsigned long height);
21
22 IntSize size() const { return m_size; }
23 unsigned long width() const { return m_size.width(); }
24 unsigned long height() const { return m_size.height(); }
25
26 void setWidth(unsigned long);
27 void setHeight(unsigned long);
28
29 PassRefPtrWillBeRawPtr<ImageBitmap> transferToImageBitmap();
30
31 DECLARE_VIRTUAL_TRACE();
32
33 private:
34 OffScreenCanvas(const IntSize&);
35
36 IntSize m_size;
37 };
38
39 } // namespace blink
40
41 #endif // OffScreenCanvas_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698