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

Side by Side Diff: Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp

Issue 12039021: Merge 140057 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 11 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
« no previous file with comments | « LayoutTests/fast/canvas/canvas-imageSmoothingEnabled-zero-size-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 4 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
6 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> 6 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org>
7 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 7 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
8 * Copyright (C) 2012 Intel Corporation. All rights reserved. 8 * Copyright (C) 2012 Intel Corporation. All rights reserved.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
(...skipping 2384 matching lines...) Expand 10 before | Expand all | Expand 10 after
2395 return state().m_imageSmoothingEnabled; 2395 return state().m_imageSmoothingEnabled;
2396 } 2396 }
2397 2397
2398 void CanvasRenderingContext2D::setWebkitImageSmoothingEnabled(bool enabled) 2398 void CanvasRenderingContext2D::setWebkitImageSmoothingEnabled(bool enabled)
2399 { 2399 {
2400 if (enabled == state().m_imageSmoothingEnabled) 2400 if (enabled == state().m_imageSmoothingEnabled)
2401 return; 2401 return;
2402 2402
2403 realizeSaves(); 2403 realizeSaves();
2404 modifiableState().m_imageSmoothingEnabled = enabled; 2404 modifiableState().m_imageSmoothingEnabled = enabled;
2405 drawingContext()->setImageInterpolationQuality(enabled ? DefaultInterpolatio nQuality : InterpolationNone); 2405 GraphicsContext* c = drawingContext();
2406 if (c)
2407 c->setImageInterpolationQuality(enabled ? DefaultInterpolationQuality : InterpolationNone);
2406 } 2408 }
2407 2409
2408 } // namespace WebCore 2410 } // namespace WebCore
OLDNEW
« no previous file with comments | « LayoutTests/fast/canvas/canvas-imageSmoothingEnabled-zero-size-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698