| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "core/html/canvas/CanvasRenderingContext2D.h" | 7 #include "core/html/canvas/CanvasRenderingContext2D.h" |
| 8 | 8 |
| 9 #include "bindings/core/v8/UnionTypesCore.h" |
| 9 #include "core/frame/FrameView.h" | 10 #include "core/frame/FrameView.h" |
| 10 #include "core/html/HTMLDocument.h" | 11 #include "core/html/HTMLDocument.h" |
| 11 #include "core/html/ImageData.h" | 12 #include "core/html/ImageData.h" |
| 12 #include "core/html/canvas/CanvasGradient.h" | 13 #include "core/html/canvas/CanvasGradient.h" |
| 13 #include "core/html/canvas/CanvasPattern.h" | 14 #include "core/html/canvas/CanvasPattern.h" |
| 14 #include "core/html/canvas/WebGLRenderingContext.h" | 15 #include "core/html/canvas/WebGLRenderingContext.h" |
| 15 #include "core/loader/EmptyClients.h" | 16 #include "core/loader/EmptyClients.h" |
| 16 #include "core/testing/DummyPageHolder.h" | 17 #include "core/testing/DummyPageHolder.h" |
| 17 #include "platform/graphics/StaticBitmapImage.h" | 18 #include "platform/graphics/StaticBitmapImage.h" |
| 18 #include "platform/graphics/UnacceleratedImageBufferSurface.h" | 19 #include "platform/graphics/UnacceleratedImageBufferSurface.h" |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 TEST_OVERDRAW_3(0, setGlobalAlpha(0.5f), setGlobalCompositeOperation(String(
"source-over")), fillRect(0, 0, 10, 10)); | 300 TEST_OVERDRAW_3(0, setGlobalAlpha(0.5f), setGlobalCompositeOperation(String(
"source-over")), fillRect(0, 0, 10, 10)); |
| 300 TEST_OVERDRAW_3(0, setGlobalAlpha(0.5f), setGlobalCompositeOperation(String(
"source-in")), fillRect(0, 0, 10, 10)); | 301 TEST_OVERDRAW_3(0, setGlobalAlpha(0.5f), setGlobalCompositeOperation(String(
"source-in")), fillRect(0, 0, 10, 10)); |
| 301 // Test composite operators with an opaque rect that does not cover the enti
re canvas | 302 // Test composite operators with an opaque rect that does not cover the enti
re canvas |
| 302 TEST_OVERDRAW_2(0, setGlobalCompositeOperation(String("clear")), fillRect(0,
0, 5, 5)); | 303 TEST_OVERDRAW_2(0, setGlobalCompositeOperation(String("clear")), fillRect(0,
0, 5, 5)); |
| 303 TEST_OVERDRAW_2(1, setGlobalCompositeOperation(String("copy")), fillRect(0,
0, 5, 5)); | 304 TEST_OVERDRAW_2(1, setGlobalCompositeOperation(String("copy")), fillRect(0,
0, 5, 5)); |
| 304 TEST_OVERDRAW_2(0, setGlobalCompositeOperation(String("source-over")), fillR
ect(0, 0, 5, 5)); | 305 TEST_OVERDRAW_2(0, setGlobalCompositeOperation(String("source-over")), fillR
ect(0, 0, 5, 5)); |
| 305 TEST_OVERDRAW_2(0, setGlobalCompositeOperation(String("source-in")), fillRec
t(0, 0, 5, 5)); | 306 TEST_OVERDRAW_2(0, setGlobalCompositeOperation(String("source-in")), fillRec
t(0, 0, 5, 5)); |
| 306 } | 307 } |
| 307 | 308 |
| 308 } // unnamed namespace | 309 } // unnamed namespace |
| OLD | NEW |