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

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

Issue 2893243003: color: Add ColorCanvasExtensions runtime flag (Closed)
Patch Set: Fix logic error in ImageBitmap Created 3 years, 7 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 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) 4 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies)
5 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 5 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
7 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> 7 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org>
8 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 8 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
9 * Copyright (C) 2012, 2013 Intel Corporation. All rights reserved. 9 * Copyright (C) 2012, 2013 Intel Corporation. All rights reserved.
10 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 10 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 } 284 }
285 285
286 String CanvasRenderingContext2D::ColorSpaceAsString() const { 286 String CanvasRenderingContext2D::ColorSpaceAsString() const {
287 return CanvasRenderingContext::ColorSpaceAsString(); 287 return CanvasRenderingContext::ColorSpaceAsString();
288 } 288 }
289 289
290 CanvasPixelFormat CanvasRenderingContext2D::PixelFormat() const { 290 CanvasPixelFormat CanvasRenderingContext2D::PixelFormat() const {
291 return color_params().pixel_format(); 291 return color_params().pixel_format();
292 } 292 }
293 293
294 ColorBehavior CanvasRenderingContext2D::DrawImageColorBehavior() const {
295 return CanvasRenderingContext::ColorBehaviorForMediaDrawnToCanvas();
296 }
297
298 void CanvasRenderingContext2D::Reset() { 294 void CanvasRenderingContext2D::Reset() {
299 // This is a multiple inherritance bootstrap 295 // This is a multiple inherritance bootstrap
300 BaseRenderingContext2D::Reset(); 296 BaseRenderingContext2D::Reset();
301 } 297 }
302 298
303 void CanvasRenderingContext2D::RestoreCanvasMatrixClipStack( 299 void CanvasRenderingContext2D::RestoreCanvasMatrixClipStack(
304 PaintCanvas* c) const { 300 PaintCanvas* c) const {
305 RestoreMatrixClipStack(c); 301 RestoreMatrixClipStack(c);
306 } 302 }
307 303
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
1190 } 1186 }
1191 return true; 1187 return true;
1192 } 1188 }
1193 1189
1194 void CanvasRenderingContext2D::ResetUsageTracking() { 1190 void CanvasRenderingContext2D::ResetUsageTracking() {
1195 UsageCounters new_counters; 1191 UsageCounters new_counters;
1196 usage_counters_ = new_counters; 1192 usage_counters_ = new_counters;
1197 } 1193 }
1198 1194
1199 } // namespace blink 1195 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698