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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // The canvas should always have an initial save frame, to support | 154 // The canvas should always have an initial save frame, to support |
155 // resetting the top level matrix and clip. | 155 // resetting the top level matrix and clip. |
156 DCHECK_GT(skCanvas->getSaveCount(), 1); | 156 DCHECK_GT(skCanvas->getSaveCount(), 1); |
157 | 157 |
158 if (m_contextLostMode == NotLostContext) { | 158 if (m_contextLostMode == NotLostContext) { |
159 DCHECK_EQ(static_cast<size_t>(skCanvas->getSaveCount()), | 159 DCHECK_EQ(static_cast<size_t>(skCanvas->getSaveCount()), |
160 m_stateStack.size() + 1); | 160 m_stateStack.size() + 1); |
161 } | 161 } |
162 } | 162 } |
163 #endif | 163 #endif |
164 CHECK(m_stateStack.first() | 164 CHECK(m_stateStack.front() |
165 .get()); // Temporary for investigating crbug.com/648510 | 165 .get()); // Temporary for investigating crbug.com/648510 |
166 } | 166 } |
167 | 167 |
168 bool CanvasRenderingContext2D::isAccelerated() const { | 168 bool CanvasRenderingContext2D::isAccelerated() const { |
169 if (!canvas()->hasImageBuffer()) | 169 if (!canvas()->hasImageBuffer()) |
170 return false; | 170 return false; |
171 return canvas()->buffer()->isAccelerated(); | 171 return canvas()->buffer()->isAccelerated(); |
172 } | 172 } |
173 | 173 |
174 void CanvasRenderingContext2D::stop() { | 174 void CanvasRenderingContext2D::stop() { |
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1154 } | 1154 } |
1155 return true; | 1155 return true; |
1156 } | 1156 } |
1157 | 1157 |
1158 void CanvasRenderingContext2D::resetUsageTracking() { | 1158 void CanvasRenderingContext2D::resetUsageTracking() { |
1159 UsageCounters newCounters; | 1159 UsageCounters newCounters; |
1160 m_usageCounters = newCounters; | 1160 m_usageCounters = newCounters; |
1161 } | 1161 } |
1162 | 1162 |
1163 } // namespace blink | 1163 } // namespace blink |
OLD | NEW |