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

Side by Side Diff: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: 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 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/offscreencanvas/OffscreenCanvas.h" 5 #include "core/offscreencanvas/OffscreenCanvas.h"
6 6
7 #include <memory>
7 #include "core/dom/ExceptionCode.h" 8 #include "core/dom/ExceptionCode.h"
8 #include "core/fileapi/Blob.h" 9 #include "core/fileapi/Blob.h"
9 #include "core/frame/ImageBitmap.h" 10 #include "core/frame/ImageBitmap.h"
10 #include "core/html/ImageData.h" 11 #include "core/html/ImageData.h"
11 #include "core/html/canvas/CanvasAsyncBlobCreator.h" 12 #include "core/html/canvas/CanvasAsyncBlobCreator.h"
12 #include "core/html/canvas/CanvasContextCreationAttributes.h" 13 #include "core/html/canvas/CanvasContextCreationAttributes.h"
13 #include "core/html/canvas/CanvasRenderingContext.h" 14 #include "core/html/canvas/CanvasRenderingContext.h"
14 #include "core/html/canvas/CanvasRenderingContextFactory.h" 15 #include "core/html/canvas/CanvasRenderingContextFactory.h"
15 #include "platform/graphics/Image.h" 16 #include "platform/graphics/Image.h"
16 #include "platform/graphics/ImageBuffer.h" 17 #include "platform/graphics/ImageBuffer.h"
17 #include "platform/graphics/OffscreenCanvasFrameDispatcherImpl.h" 18 #include "platform/graphics/OffscreenCanvasFrameDispatcherImpl.h"
18 #include "platform/graphics/StaticBitmapImage.h" 19 #include "platform/graphics/StaticBitmapImage.h"
19 #include "platform/image-encoders/ImageEncoderUtils.h" 20 #include "platform/image-encoders/ImageEncoderUtils.h"
20 #include "wtf/MathExtras.h" 21 #include "wtf/MathExtras.h"
21 #include <memory>
22 22
23 namespace blink { 23 namespace blink {
24 24
25 OffscreenCanvas::OffscreenCanvas(const IntSize& size) : m_size(size) {} 25 OffscreenCanvas::OffscreenCanvas(const IntSize& size) : m_size(size) {}
26 26
27 OffscreenCanvas* OffscreenCanvas::create(unsigned width, unsigned height) { 27 OffscreenCanvas* OffscreenCanvas::create(unsigned width, unsigned height) {
28 return new OffscreenCanvas( 28 return new OffscreenCanvas(
29 IntSize(clampTo<int>(width), clampTo<int>(height))); 29 IntSize(clampTo<int>(width), clampTo<int>(height)));
30 } 30 }
31 31
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 } 325 }
326 326
327 DEFINE_TRACE(OffscreenCanvas) { 327 DEFINE_TRACE(OffscreenCanvas) {
328 visitor->trace(m_context); 328 visitor->trace(m_context);
329 visitor->trace(m_executionContext); 329 visitor->trace(m_executionContext);
330 visitor->trace(m_commitPromiseResolver); 330 visitor->trace(m_commitPromiseResolver);
331 EventTargetWithInlineData::trace(visitor); 331 EventTargetWithInlineData::trace(visitor);
332 } 332 }
333 333
334 } // namespace blink 334 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698