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

Side by Side Diff: cc/output/overlay_unittest.cc

Issue 2783973002: Moving LatencyInfo into a separate component. (Closed)
Patch Set: Rebase again 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 | « cc/output/output_surface_frame.h ('k') | cc/output/software_renderer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 19 matching lines...) Expand all
30 #include "cc/resources/resource_provider.h" 30 #include "cc/resources/resource_provider.h"
31 #include "cc/resources/texture_mailbox.h" 31 #include "cc/resources/texture_mailbox.h"
32 #include "cc/test/fake_output_surface_client.h" 32 #include "cc/test/fake_output_surface_client.h"
33 #include "cc/test/fake_resource_provider.h" 33 #include "cc/test/fake_resource_provider.h"
34 #include "cc/test/geometry_test_utils.h" 34 #include "cc/test/geometry_test_utils.h"
35 #include "cc/test/test_context_provider.h" 35 #include "cc/test/test_context_provider.h"
36 #include "cc/test/test_shared_bitmap_manager.h" 36 #include "cc/test/test_shared_bitmap_manager.h"
37 #include "cc/test/test_web_graphics_context_3d.h" 37 #include "cc/test/test_web_graphics_context_3d.h"
38 #include "testing/gmock/include/gmock/gmock.h" 38 #include "testing/gmock/include/gmock/gmock.h"
39 #include "testing/gtest/include/gtest/gtest.h" 39 #include "testing/gtest/include/gtest/gtest.h"
40 #include "ui/events/latency_info.h"
41 #include "ui/gfx/geometry/rect_conversions.h" 40 #include "ui/gfx/geometry/rect_conversions.h"
42 #include "ui/gl/gl_switches.h" 41 #include "ui/gl/gl_switches.h"
42 #include "ui/latency/latency_info.h"
43 43
44 using testing::_; 44 using testing::_;
45 using testing::Mock; 45 using testing::Mock;
46 46
47 namespace cc { 47 namespace cc {
48 namespace { 48 namespace {
49 49
50 const gfx::Size kDisplaySize(256, 256); 50 const gfx::Size kDisplaySize(256, 256);
51 const gfx::Rect kOverlayRect(0, 0, 256, 256); 51 const gfx::Rect kOverlayRect(0, 0, 256, 256);
52 const gfx::Rect kOverlayTopLeftRect(0, 0, 128, 128); 52 const gfx::Rect kOverlayTopLeftRect(0, 0, 128, 128);
(...skipping 2472 matching lines...) Expand 10 before | Expand all | Expand 10 after
2525 kOverlayRect, render_pass_id_, 2, gfx::RectF(), gfx::Size(), 2525 kOverlayRect, render_pass_id_, 2, gfx::RectF(), gfx::Size(),
2526 gfx::Vector2dF(1, 1), gfx::PointF(), gfx::RectF()); 2526 gfx::Vector2dF(1, 1), gfx::PointF(), gfx::RectF());
2527 } 2527 }
2528 2528
2529 ProcessForOverlays(); 2529 ProcessForOverlays();
2530 EXPECT_EQ(0U, ca_layer_list_.size()); 2530 EXPECT_EQ(0U, ca_layer_list_.size());
2531 } 2531 }
2532 2532
2533 } // namespace 2533 } // namespace
2534 } // namespace cc 2534 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/output_surface_frame.h ('k') | cc/output/software_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698