Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp

Issue 2877833002: Disable 2D canvas deferral on text rendering when compositing (Closed)
Patch Set: x Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp
index 364aac92c417eca3311231c6cadb761e6e132da0..5d1cad9139da64df6c9b58b3deb1da86ec43d77a 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp
@@ -832,19 +832,6 @@ TEST_F(CanvasRenderingContext2DTest, OpaqueDisplayListFallsBackForText) {
EXPECT_FALSE(surface_ptr->IsRecording());
}
-TEST_F(CanvasRenderingContext2DTest,
- NonOpaqueDisplayListDoesNotFallBackForText) {
- CreateContext(kNonOpaque);
- auto surface = WTF::MakeUnique<RecordingImageBufferSurface>(
- IntSize(10, 10), RecordingImageBufferSurface::kAllowFallback, kNonOpaque);
- auto* surface_ptr = surface.get();
- CanvasElement().CreateImageBufferUsingSurfaceForTesting(std::move(surface));
-
- Context2d()->fillText("Text", 0, 5);
-
- EXPECT_TRUE(surface_ptr->IsRecording());
-}
-
TEST_F(CanvasRenderingContext2DTest, ImageResourceLifetime) {
NonThrowableExceptionState non_throwable_exception_state;
Element* canvas_element =
« no previous file with comments | « third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698