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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurfaceTest.cpp

Issue 2398453002: Rewrap comments to 80 columns in Source/platform/graphics/. (Closed)
Patch Set: Review feedback Created 4 years, 2 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 unified diff | Download patch
OLDNEW
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 "platform/graphics/RecordingImageBufferSurface.h" 5 #include "platform/graphics/RecordingImageBufferSurface.h"
6 6
7 #include "platform/graphics/GraphicsContext.h" 7 #include "platform/graphics/GraphicsContext.h"
8 #include "platform/graphics/ImageBuffer.h" 8 #include "platform/graphics/ImageBuffer.h"
9 #include "platform/graphics/ImageBufferClient.h" 9 #include "platform/graphics/ImageBufferClient.h"
10 #include "platform/graphics/UnacceleratedImageBufferSurface.h" 10 #include "platform/graphics/UnacceleratedImageBufferSurface.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 void testNoFallbackWithClear() { 122 void testNoFallbackWithClear() {
123 m_testSurface->initializeCurrentFrame(); 123 m_testSurface->initializeCurrentFrame();
124 m_testSurface->willOverwriteCanvas(); 124 m_testSurface->willOverwriteCanvas();
125 m_testSurface->getPicture(); 125 m_testSurface->getPicture();
126 EXPECT_EQ(1, m_fakeImageBufferClient->frameCount()); 126 EXPECT_EQ(1, m_fakeImageBufferClient->frameCount());
127 expectDisplayListEnabled(true); 127 expectDisplayListEnabled(true);
128 } 128 }
129 129
130 void testNonAnimatedCanvasUpdate() { 130 void testNonAnimatedCanvasUpdate() {
131 m_testSurface->initializeCurrentFrame(); 131 m_testSurface->initializeCurrentFrame();
132 // acquire picture twice to simulate a static canvas: nothing drawn between updates 132 // Acquire picture twice to simulate a static canvas: nothing drawn between
133 // updates.
133 m_fakeImageBufferClient->fakeDraw(); 134 m_fakeImageBufferClient->fakeDraw();
134 m_testSurface->getPicture(); 135 m_testSurface->getPicture();
135 m_testSurface->getPicture(); 136 m_testSurface->getPicture();
136 EXPECT_EQ(2, m_fakeImageBufferClient->frameCount()); 137 EXPECT_EQ(2, m_fakeImageBufferClient->frameCount());
137 expectDisplayListEnabled(true); 138 expectDisplayListEnabled(true);
138 } 139 }
139 140
140 void testAnimatedWithoutClear() { 141 void testAnimatedWithoutClear() {
141 m_testSurface->initializeCurrentFrame(); 142 m_testSurface->initializeCurrentFrame();
142 m_fakeImageBufferClient->fakeDraw(); 143 m_fakeImageBufferClient->fakeDraw();
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 CALL_TEST_TASK_WRAPPER(testAnimatedWithClear) 268 CALL_TEST_TASK_WRAPPER(testAnimatedWithClear)
268 expectDisplayListEnabled(true); 269 expectDisplayListEnabled(true);
269 } 270 }
270 271
271 TEST_F(RecordingImageBufferSurfaceTest, testClearRect) { 272 TEST_F(RecordingImageBufferSurfaceTest, testClearRect) {
272 CALL_TEST_TASK_WRAPPER(testClearRect); 273 CALL_TEST_TASK_WRAPPER(testClearRect);
273 expectDisplayListEnabled(true); 274 expectDisplayListEnabled(true);
274 } 275 }
275 276
276 } // namespace blink 277 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698