OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "modules/canvas2d/CanvasRenderingContext2D.h" | 5 #include "modules/canvas2d/CanvasRenderingContext2D.h" |
6 | 6 |
7 #include "bindings/core/v8/V8BindingForCore.h" | 7 #include "bindings/core/v8/V8BindingForCore.h" |
8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
9 #include "core/frame/FrameView.h" | 9 #include "core/frame/FrameView.h" |
10 #include "core/frame/Settings.h" | 10 #include "core/frame/Settings.h" |
11 #include "core/html/HTMLCanvasElement.h" | 11 #include "core/html/HTMLCanvasElement.h" |
12 #include "core/html/ImageData.h" | 12 #include "core/html/ImageData.h" |
13 #include "core/loader/EmptyClients.h" | 13 #include "core/loader/EmptyClients.h" |
14 #include "core/testing/DummyPageHolder.h" | 14 #include "core/testing/DummyPageHolder.h" |
15 #include "modules/accessibility/AXObject.h" | |
16 #include "modules/accessibility/AXObjectCacheImpl.h" | 15 #include "modules/accessibility/AXObjectCacheImpl.h" |
17 #include "modules/canvas2d/CanvasGradient.h" | 16 #include "modules/canvas2d/CanvasGradient.h" |
18 #include "modules/canvas2d/CanvasPattern.h" | 17 #include "modules/canvas2d/CanvasPattern.h" |
19 #include "modules/canvas2d/HitRegionOptions.h" | 18 #include "modules/canvas2d/HitRegionOptions.h" |
20 #include "modules/canvas2d/Path2D.h" | 19 #include "modules/canvas2d/Path2D.h" |
21 #include "modules/webgl/WebGLRenderingContext.h" | 20 #include "modules/webgl/WebGLRenderingContext.h" |
22 #include "platform/RuntimeEnabledFeatures.h" | 21 #include "platform/RuntimeEnabledFeatures.h" |
23 #include "platform/graphics/StaticBitmapImage.h" | 22 #include "platform/graphics/StaticBitmapImage.h" |
24 #include "platform/graphics/UnacceleratedImageBufferSurface.h" | 23 #include "platform/graphics/UnacceleratedImageBufferSurface.h" |
25 #include "platform/loader/fetch/MemoryCache.h" | 24 #include "platform/loader/fetch/MemoryCache.h" |
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 for (int i = 0; i < kNumReps; i++) { | 675 for (int i = 0; i < kNumReps; i++) { |
677 Context2d()->fillRect(10, 10, 100, 100); | 676 Context2d()->fillRect(10, 10, 100, 100); |
678 } | 677 } |
679 EXPECT_EQ(kNumReps, Context2d() | 678 EXPECT_EQ(kNumReps, Context2d() |
680 ->GetUsage() | 679 ->GetUsage() |
681 .num_draw_calls[BaseRenderingContext2D::kFillRect]); | 680 .num_draw_calls[BaseRenderingContext2D::kFillRect]); |
682 } | 681 } |
683 | 682 |
684 } // namespace UsageTrackingTests | 683 } // namespace UsageTrackingTests |
685 } // namespace blink | 684 } // namespace blink |
OLD | NEW |