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

Side by Side Diff: third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp

Issue 1775153002: Make OffscreenCanvasRenderingContext2D renderable on a worker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix non-oilpan build Created 4 years, 9 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "modules/canvas2d/BaseRenderingContext2D.h" 5 #include "modules/canvas2d/BaseRenderingContext2D.h"
6 6
7 #include "bindings/core/v8/ExceptionMessages.h" 7 #include "bindings/core/v8/ExceptionMessages.h"
8 #include "bindings/core/v8/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
9 #include "bindings/core/v8/ExceptionStatePlaceholder.h" 9 #include "bindings/core/v8/ExceptionStatePlaceholder.h"
10 #include "core/css/parser/CSSParser.h" 10 #include "core/css/parser/CSSParser.h"
11 #include "core/frame/ImageBitmap.h" 11 #include "core/frame/ImageBitmap.h"
12 #include "core/html/HTMLCanvasElement.h" 12 #include "core/html/HTMLCanvasElement.h"
13 #include "core/html/HTMLImageElement.h" 13 #include "core/html/HTMLImageElement.h"
14 #include "core/html/HTMLVideoElement.h" 14 #include "core/html/HTMLVideoElement.h"
15 #include "core/html/ImageData.h" 15 #include "core/html/ImageData.h"
16 #include "modules/canvas2d/CanvasGradient.h" 16 #include "modules/canvas2d/CanvasGradient.h"
17 #include "modules/canvas2d/CanvasPattern.h" 17 #include "modules/canvas2d/CanvasPattern.h"
18 #include "modules/canvas2d/CanvasStyle.h" 18 #include "modules/canvas2d/CanvasStyle.h"
19 #include "modules/canvas2d/Path2D.h" 19 #include "modules/canvas2d/Path2D.h"
20 #include "platform/geometry/FloatQuad.h" 20 #include "platform/geometry/FloatQuad.h"
21 #include "platform/graphics/Color.h" 21 #include "platform/graphics/Color.h"
22 #include "platform/graphics/ExpensiveCanvasHeuristicParameters.h" 22 #include "platform/graphics/ExpensiveCanvasHeuristicParameters.h"
23 #include "platform/graphics/Image.h" 23 #include "platform/graphics/Image.h"
24 #include "platform/graphics/ImageBuffer.h" 24 #include "platform/graphics/ImageBuffer.h"
25 #include "platform/graphics/StrokeData.h" 25 #include "platform/graphics/StrokeData.h"
26 #include "platform/graphics/filters/FilterOperation.h"
26 #include "platform/graphics/skia/SkiaUtils.h" 27 #include "platform/graphics/skia/SkiaUtils.h"
27 #include "third_party/skia/include/core/SkImageFilter.h" 28 #include "third_party/skia/include/core/SkImageFilter.h"
28 29
29 namespace blink { 30 namespace blink {
30 31
31 BaseRenderingContext2D::BaseRenderingContext2D() 32 BaseRenderingContext2D::BaseRenderingContext2D()
32 : m_clipAntialiasing(NotAntiAliased) 33 : m_clipAntialiasing(NotAntiAliased)
33 { 34 {
34 m_stateStack.append(CanvasRenderingContext2DState::create()); 35 m_stateStack.append(CanvasRenderingContext2DState::create());
35 } 36 }
(...skipping 1326 matching lines...) Expand 10 before | Expand all | Expand 10 after
1362 1363
1363 imageBuffer()->willOverwriteCanvas(); 1364 imageBuffer()->willOverwriteCanvas();
1364 } 1365 }
1365 1366
1366 DEFINE_TRACE(BaseRenderingContext2D) 1367 DEFINE_TRACE(BaseRenderingContext2D)
1367 { 1368 {
1368 visitor->trace(m_stateStack); 1369 visitor->trace(m_stateStack);
1369 } 1370 }
1370 1371
1371 } // namespace blink 1372 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698