OLD | NEW |
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, 2013 Intel Corporation. All rights reserved. | 8 * Copyright (C) 2012, 2013 Intel Corporation. All rights reserved. |
9 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 9 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
10 * | 10 * |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 bool CanvasRenderingContext2D::hasImageBuffer() const | 577 bool CanvasRenderingContext2D::hasImageBuffer() const |
578 { | 578 { |
579 return canvas()->hasImageBuffer(); | 579 return canvas()->hasImageBuffer(); |
580 } | 580 } |
581 | 581 |
582 ImageBuffer* CanvasRenderingContext2D::imageBuffer() const | 582 ImageBuffer* CanvasRenderingContext2D::imageBuffer() const |
583 { | 583 { |
584 return canvas()->buffer(); | 584 return canvas()->buffer(); |
585 } | 585 } |
586 | 586 |
587 PassRefPtr<Image> blink::CanvasRenderingContext2D::getImage(SnapshotReason reaso
n) const | 587 PassRefPtr<Image> blink::CanvasRenderingContext2D::getImage(AccelerationHint hin
t, SnapshotReason reason) const |
588 { | 588 { |
589 if (!hasImageBuffer()) | 589 if (!hasImageBuffer()) |
590 return nullptr; | 590 return nullptr; |
591 return canvas()->buffer()->newImageSnapshot(PreferAcceleration, reason); | 591 return canvas()->buffer()->newImageSnapshot(hint, reason); |
592 } | 592 } |
593 | 593 |
594 bool CanvasRenderingContext2D::parseColorOrCurrentColor(Color& color, const Stri
ng& colorString) const | 594 bool CanvasRenderingContext2D::parseColorOrCurrentColor(Color& color, const Stri
ng& colorString) const |
595 { | 595 { |
596 return ::blink::parseColorOrCurrentColor(color, colorString, canvas()); | 596 return ::blink::parseColorOrCurrentColor(color, colorString, canvas()); |
597 } | 597 } |
598 | 598 |
599 HitTestCanvasResult* CanvasRenderingContext2D::getControlAndIdIfHitRegionExists(
const LayoutPoint& location) | 599 HitTestCanvasResult* CanvasRenderingContext2D::getControlAndIdIfHitRegionExists(
const LayoutPoint& location) |
600 { | 600 { |
601 if (hitRegionsCount() <= 0) | 601 if (hitRegionsCount() <= 0) |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1097 return true; | 1097 return true; |
1098 } | 1098 } |
1099 | 1099 |
1100 void CanvasRenderingContext2D::resetUsageTracking() | 1100 void CanvasRenderingContext2D::resetUsageTracking() |
1101 { | 1101 { |
1102 UsageCounters newCounters; | 1102 UsageCounters newCounters; |
1103 m_usageCounters = newCounters; | 1103 m_usageCounters = newCounters; |
1104 } | 1104 } |
1105 | 1105 |
1106 } // namespace blink | 1106 } // namespace blink |
OLD | NEW |