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

Side by Side Diff: ui/compositor/compositor_unittest.cc

Issue 2800833005: Remove SurfaceFactory Occurrences Outside Of cc (Closed)
Patch Set: Make SurfaceFactoryClient Implementation In CompositorFrameSinkSupport Public Created 3 years, 8 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 <stdint.h> 5 #include <stdint.h>
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "base/test/test_mock_time_task_runner.h" 9 #include "base/test/test_mock_time_task_runner.h"
10 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
11 #include "cc/output/begin_frame_args.h" 11 #include "cc/output/begin_frame_args.h"
12 #include "cc/surfaces/local_surface_id_allocator.h" 12 #include "cc/surfaces/local_surface_id_allocator.h"
13 #include "cc/surfaces/surface_factory.h"
14 #include "cc/surfaces/surface_factory_client.h"
15 #include "cc/surfaces/surface_manager.h" 13 #include "cc/surfaces/surface_manager.h"
16 #include "cc/test/begin_frame_args_test.h" 14 #include "cc/test/begin_frame_args_test.h"
17 #include "testing/gmock/include/gmock/gmock.h" 15 #include "testing/gmock/include/gmock/gmock.h"
18 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
19 #include "ui/compositor/compositor.h" 17 #include "ui/compositor/compositor.h"
20 #include "ui/compositor/layer.h" 18 #include "ui/compositor/layer.h"
21 #include "ui/compositor/test/context_factories_for_test.h" 19 #include "ui/compositor/test/context_factories_for_test.h"
22 #include "ui/compositor/test/draw_waiter_for_test.h" 20 #include "ui/compositor/test/draw_waiter_for_test.h"
23 21
24 using testing::Mock; 22 using testing::Mock;
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 EXPECT_EQ(gfx::kNullAcceleratedWidget, 335 EXPECT_EQ(gfx::kNullAcceleratedWidget,
338 compositor()->ReleaseAcceleratedWidget()); 336 compositor()->ReleaseAcceleratedWidget());
339 compositor()->SetAcceleratedWidget(gfx::kNullAcceleratedWidget); 337 compositor()->SetAcceleratedWidget(gfx::kNullAcceleratedWidget);
340 compositor()->SetVisible(true); 338 compositor()->SetVisible(true);
341 compositor()->ScheduleDraw(); 339 compositor()->ScheduleDraw();
342 DrawWaiterForTest::WaitForCompositingStarted(compositor()); 340 DrawWaiterForTest::WaitForCompositingStarted(compositor());
343 compositor()->SetRootLayer(nullptr); 341 compositor()->SetRootLayer(nullptr);
344 } 342 }
345 343
346 } // namespace ui 344 } // namespace ui
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698