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

Side by Side Diff: third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp

Issue 2585673002: Replace ASSERT, ENABLE(ASSERT), and ASSERT_NOT_REACHED in wtf (Closed)
Patch Set: Fix an Asan issue with LinkedHashSetNodeBase::unlink Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/wtf/ASCIICType.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h" 5 #include "modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h"
6 6
7 #include "bindings/modules/v8/OffscreenCanvasRenderingContext2DOrWebGLRenderingC ontextOrWebGL2RenderingContext.h" 7 #include "bindings/modules/v8/OffscreenCanvasRenderingContext2DOrWebGLRenderingC ontextOrWebGL2RenderingContext.h"
8 #include "core/frame/ImageBitmap.h" 8 #include "core/frame/ImageBitmap.h"
9 #include "core/frame/Settings.h" 9 #include "core/frame/Settings.h"
10 #include "core/workers/WorkerGlobalScope.h" 10 #include "core/workers/WorkerGlobalScope.h"
11 #include "core/workers/WorkerSettings.h" 11 #include "core/workers/WorkerSettings.h"
12 #include "platform/graphics/ImageBuffer.h" 12 #include "platform/graphics/ImageBuffer.h"
13 #include "platform/graphics/StaticBitmapImage.h" 13 #include "platform/graphics/StaticBitmapImage.h"
14 #include "platform/graphics/UnacceleratedImageBufferSurface.h" 14 #include "platform/graphics/UnacceleratedImageBufferSurface.h"
15 #include "platform/graphics/gpu/AcceleratedImageBufferSurface.h" 15 #include "platform/graphics/gpu/AcceleratedImageBufferSurface.h"
16 #include "wtf/Assertions.h" 16 #include "wtf/Assertions.h"
17 #include "wtf/CurrentTime.h" 17 #include "wtf/CurrentTime.h"
18 18
19 #define UNIMPLEMENTED ASSERT_NOT_REACHED
20
21 namespace blink { 19 namespace blink {
22 20
23 OffscreenCanvasRenderingContext2D::~OffscreenCanvasRenderingContext2D() {} 21 OffscreenCanvasRenderingContext2D::~OffscreenCanvasRenderingContext2D() {}
24 22
25 OffscreenCanvasRenderingContext2D::OffscreenCanvasRenderingContext2D( 23 OffscreenCanvasRenderingContext2D::OffscreenCanvasRenderingContext2D(
26 ScriptState* scriptState, 24 ScriptState* scriptState,
27 OffscreenCanvas* canvas, 25 OffscreenCanvas* canvas,
28 const CanvasContextCreationAttributes& attrs) 26 const CanvasContextCreationAttributes& attrs)
29 : CanvasRenderingContext(nullptr, canvas, attrs) { 27 : CanvasRenderingContext(nullptr, canvas, attrs) {
30 ExecutionContext* executionContext = scriptState->getExecutionContext(); 28 ExecutionContext* executionContext = scriptState->getExecutionContext();
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 } 249 }
252 250
253 bool OffscreenCanvasRenderingContext2D::isContextLost() const { 251 bool OffscreenCanvasRenderingContext2D::isContextLost() const {
254 return false; 252 return false;
255 } 253 }
256 254
257 bool OffscreenCanvasRenderingContext2D::isPaintable() const { 255 bool OffscreenCanvasRenderingContext2D::isPaintable() const {
258 return this->imageBuffer(); 256 return this->imageBuffer();
259 } 257 }
260 } 258 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/wtf/ASCIICType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698