| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 #include "modules/canvas2d/Path2D.h" | 55 #include "modules/canvas2d/Path2D.h" |
| 56 #include "platform/fonts/FontCache.h" | 56 #include "platform/fonts/FontCache.h" |
| 57 #include "platform/graphics/DrawLooperBuilder.h" | 57 #include "platform/graphics/DrawLooperBuilder.h" |
| 58 #include "platform/graphics/ExpensiveCanvasHeuristicParameters.h" | 58 #include "platform/graphics/ExpensiveCanvasHeuristicParameters.h" |
| 59 #include "platform/graphics/ImageBuffer.h" | 59 #include "platform/graphics/ImageBuffer.h" |
| 60 #include "platform/graphics/StrokeData.h" | 60 #include "platform/graphics/StrokeData.h" |
| 61 #include "platform/graphics/paint/PaintCanvas.h" | 61 #include "platform/graphics/paint/PaintCanvas.h" |
| 62 #include "platform/graphics/paint/PaintFlags.h" | 62 #include "platform/graphics/paint/PaintFlags.h" |
| 63 #include "platform/graphics/skia/SkiaUtils.h" | 63 #include "platform/graphics/skia/SkiaUtils.h" |
| 64 #include "platform/text/BidiTextRun.h" | 64 #include "platform/text/BidiTextRun.h" |
| 65 #include "platform/wtf/MathExtras.h" |
| 66 #include "platform/wtf/text/StringBuilder.h" |
| 67 #include "platform/wtf/typed_arrays/ArrayBufferContents.h" |
| 65 #include "public/platform/Platform.h" | 68 #include "public/platform/Platform.h" |
| 66 #include "third_party/skia/include/core/SkImageFilter.h" | 69 #include "third_party/skia/include/core/SkImageFilter.h" |
| 67 #include "wtf/MathExtras.h" | |
| 68 #include "wtf/text/StringBuilder.h" | |
| 69 #include "wtf/typed_arrays/ArrayBufferContents.h" | |
| 70 | 70 |
| 71 namespace blink { | 71 namespace blink { |
| 72 | 72 |
| 73 static const char kDefaultFont[] = "10px sans-serif"; | 73 static const char kDefaultFont[] = "10px sans-serif"; |
| 74 static const char kInheritDirectionString[] = "inherit"; | 74 static const char kInheritDirectionString[] = "inherit"; |
| 75 static const char kRtlDirectionString[] = "rtl"; | 75 static const char kRtlDirectionString[] = "rtl"; |
| 76 static const char kLtrDirectionString[] = "ltr"; | 76 static const char kLtrDirectionString[] = "ltr"; |
| 77 static const double kTryRestoreContextInterval = 0.5; | 77 static const double kTryRestoreContextInterval = 0.5; |
| 78 static const unsigned kMaxTryRestoreContextAttempts = 4; | 78 static const unsigned kMaxTryRestoreContextAttempts = 4; |
| 79 static const double kCDeviceScaleFactor = 1.0; // Canvas is device independent | 79 static const double kCDeviceScaleFactor = 1.0; // Canvas is device independent |
| (...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1177 } | 1177 } |
| 1178 return true; | 1178 return true; |
| 1179 } | 1179 } |
| 1180 | 1180 |
| 1181 void CanvasRenderingContext2D::ResetUsageTracking() { | 1181 void CanvasRenderingContext2D::ResetUsageTracking() { |
| 1182 UsageCounters new_counters; | 1182 UsageCounters new_counters; |
| 1183 usage_counters_ = new_counters; | 1183 usage_counters_ = new_counters; |
| 1184 } | 1184 } |
| 1185 | 1185 |
| 1186 } // namespace blink | 1186 } // namespace blink |
| OLD | NEW |