OLD | NEW |
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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 buffer->setHasExpensiveOp(); | 372 buffer->setHasExpensiveOp(); |
373 } | 373 } |
374 | 374 |
375 canvas()->didDraw(SkRect::Make(dirtyRect)); | 375 canvas()->didDraw(SkRect::Make(dirtyRect)); |
376 } | 376 } |
377 | 377 |
378 bool CanvasRenderingContext2D::stateHasFilter() { | 378 bool CanvasRenderingContext2D::stateHasFilter() { |
379 return state().hasFilter(canvas(), canvas()->size(), this); | 379 return state().hasFilter(canvas(), canvas()->size(), this); |
380 } | 380 } |
381 | 381 |
382 SkImageFilter* CanvasRenderingContext2D::stateGetFilter() { | 382 sk_sp<SkImageFilter> CanvasRenderingContext2D::stateGetFilter() { |
383 return state().getFilter(canvas(), canvas()->size(), this); | 383 return state().getFilter(canvas(), canvas()->size(), this); |
384 } | 384 } |
385 | 385 |
386 void CanvasRenderingContext2D::snapshotStateForFilter() { | 386 void CanvasRenderingContext2D::snapshotStateForFilter() { |
387 // The style resolution required for fonts is not available in frame-less | 387 // The style resolution required for fonts is not available in frame-less |
388 // documents. | 388 // documents. |
389 if (!canvas()->document().frame()) | 389 if (!canvas()->document().frame()) |
390 return; | 390 return; |
391 | 391 |
392 modifiableState().setFontForFilter(accessFont()); | 392 modifiableState().setFontForFilter(accessFont()); |
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1158 } | 1158 } |
1159 return true; | 1159 return true; |
1160 } | 1160 } |
1161 | 1161 |
1162 void CanvasRenderingContext2D::resetUsageTracking() { | 1162 void CanvasRenderingContext2D::resetUsageTracking() { |
1163 UsageCounters newCounters; | 1163 UsageCounters newCounters; |
1164 m_usageCounters = newCounters; | 1164 m_usageCounters = newCounters; |
1165 } | 1165 } |
1166 | 1166 |
1167 } // namespace blink | 1167 } // namespace blink |
OLD | NEW |