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

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

Issue 2843503002: scheduler: Move WebFrameScheduler and WebScheduler into Blink (Closed)
Patch Set: Build fix 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 20 matching lines...) Expand all
31 #include "gpu/command_buffer/client/gles2_interface.h" 31 #include "gpu/command_buffer/client/gles2_interface.h"
32 #include "gpu/command_buffer/common/capabilities.h" 32 #include "gpu/command_buffer/common/capabilities.h"
33 #include "platform/CrossThreadFunctional.h" 33 #include "platform/CrossThreadFunctional.h"
34 #include "platform/WaitableEvent.h" 34 #include "platform/WaitableEvent.h"
35 #include "platform/WebTaskRunner.h" 35 #include "platform/WebTaskRunner.h"
36 #include "platform/graphics/ImageBuffer.h" 36 #include "platform/graphics/ImageBuffer.h"
37 #include "platform/graphics/UnacceleratedImageBufferSurface.h" 37 #include "platform/graphics/UnacceleratedImageBufferSurface.h"
38 #include "platform/graphics/paint/PaintFlags.h" 38 #include "platform/graphics/paint/PaintFlags.h"
39 #include "platform/graphics/test/FakeGLES2Interface.h" 39 #include "platform/graphics/test/FakeGLES2Interface.h"
40 #include "platform/graphics/test/FakeWebGraphicsContext3DProvider.h" 40 #include "platform/graphics/test/FakeWebGraphicsContext3DProvider.h"
41 #include "platform/scheduler/child/web_scheduler.h"
41 #include "platform/testing/TestingPlatformSupport.h" 42 #include "platform/testing/TestingPlatformSupport.h"
42 #include "platform/wtf/PtrUtil.h" 43 #include "platform/wtf/PtrUtil.h"
43 #include "platform/wtf/RefPtr.h" 44 #include "platform/wtf/RefPtr.h"
44 #include "public/platform/Platform.h" 45 #include "public/platform/Platform.h"
45 #include "public/platform/WebExternalBitmap.h" 46 #include "public/platform/WebExternalBitmap.h"
46 #include "public/platform/WebScheduler.h"
47 #include "public/platform/WebThread.h" 47 #include "public/platform/WebThread.h"
48 #include "public/platform/WebTraceLocation.h" 48 #include "public/platform/WebTraceLocation.h"
49 #include "skia/ext/texture_handle.h" 49 #include "skia/ext/texture_handle.h"
50 #include "testing/gmock/include/gmock/gmock.h" 50 #include "testing/gmock/include/gmock/gmock.h"
51 #include "testing/gtest/include/gtest/gtest.h" 51 #include "testing/gtest/include/gtest/gtest.h"
52 #include "third_party/skia/include/core/SkSurface.h" 52 #include "third_party/skia/include/core/SkSurface.h"
53 #include "third_party/skia/include/gpu/gl/GrGLTypes.h" 53 #include "third_party/skia/include/gpu/gl/GrGLTypes.h"
54 54
55 #include <memory> 55 #include <memory>
56 56
(...skipping 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1379 EXPECT_FALSE(bridge->HasRecordedDrawCommands()); 1379 EXPECT_FALSE(bridge->HasRecordedDrawCommands());
1380 ::testing::Mock::VerifyAndClearExpectations(&gl); 1380 ::testing::Mock::VerifyAndClearExpectations(&gl);
1381 1381
1382 EXPECT_CALL(gl, Flush()).Times(1); 1382 EXPECT_CALL(gl, Flush()).Times(1);
1383 bridge->FlushGpu(); 1383 bridge->FlushGpu();
1384 EXPECT_FALSE(bridge->HasRecordedDrawCommands()); 1384 EXPECT_FALSE(bridge->HasRecordedDrawCommands());
1385 ::testing::Mock::VerifyAndClearExpectations(&gl); 1385 ::testing::Mock::VerifyAndClearExpectations(&gl);
1386 } 1386 }
1387 1387
1388 } // namespace blink 1388 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698