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

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

Issue 1748163003: Add rendering context and rendering 2D context to OffscreenCanvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make OffscreenCanvasRenderingContext Modules exportable" 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 #ifndef BaseRenderingContext2D_h 5 #ifndef BaseRenderingContext2D_h
6 #define BaseRenderingContext2D_h 6 #define BaseRenderingContext2D_h
7 7
8 #include "bindings/core/v8/UnionTypesCore.h" 8 #include "bindings/core/v8/UnionTypesCore.h"
9 #include "bindings/modules/v8/UnionTypesModules.h" 9 #include "bindings/modules/v8/UnionTypesModules.h"
10 #include "core/html/canvas/CanvasRenderingContext.h"
11 #include "modules/ModulesExport.h" 10 #include "modules/ModulesExport.h"
12 #include "modules/canvas2d/CanvasGradient.h" 11 #include "modules/canvas2d/CanvasGradient.h"
13 #include "modules/canvas2d/CanvasPathMethods.h" 12 #include "modules/canvas2d/CanvasPathMethods.h"
14 #include "modules/canvas2d/CanvasRenderingContext2DState.h" 13 #include "modules/canvas2d/CanvasRenderingContext2DState.h"
15 #include "modules/canvas2d/CanvasStyle.h" 14 #include "modules/canvas2d/CanvasStyle.h"
16 #include "third_party/skia/include/core/SkCanvas.h" 15 #include "third_party/skia/include/core/SkCanvas.h"
17 16
18 namespace blink { 17 namespace blink {
19 18
20 class CanvasImageSource; 19 class CanvasImageSource;
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 foregroundPaint.setXfermodeMode(SkXfermode::kSrcOver_Mode); 282 foregroundPaint.setXfermodeMode(SkXfermode::kSrcOver_Mode);
284 c->setMatrix(ctm); 283 c->setMatrix(ctm);
285 drawFunc(c, &foregroundPaint); 284 drawFunc(c, &foregroundPaint);
286 c->restore(); 285 c->restore();
287 c->setMatrix(ctm); 286 c->setMatrix(ctm);
288 } 287 }
289 288
290 } // namespace blink 289 } // namespace blink
291 290
292 #endif // BaseRenderingContext2D_h 291 #endif // BaseRenderingContext2D_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/InitModules.cpp ('k') | third_party/WebKit/Source/modules/modules.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698