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

Side by Side Diff: cc/tiles/picture_layer_tiling_unittest.cc

Issue 2452483002: Move GpuMemoryBufferManager and SharedBitmapManager to CompositorFrameSink (Closed)
Patch Set: rebase Created 4 years, 1 month 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/test/test_layer_tree_host_base.cc ('k') | cc/tiles/tile_manager_perftest.cc » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "cc/tiles/picture_layer_tiling.h" 5 #include "cc/tiles/picture_layer_tiling.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <limits> 9 #include <limits>
10 #include <set> 10 #include <set>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/ptr_util.h" 14 #include "base/memory/ptr_util.h"
15 #include "cc/base/math_util.h" 15 #include "cc/base/math_util.h"
16 #include "cc/test/fake_output_surface.h" 16 #include "cc/test/fake_output_surface.h"
17 #include "cc/test/fake_output_surface_client.h" 17 #include "cc/test/fake_output_surface_client.h"
18 #include "cc/test/fake_picture_layer_tiling_client.h" 18 #include "cc/test/fake_picture_layer_tiling_client.h"
19 #include "cc/test/fake_raster_source.h" 19 #include "cc/test/fake_raster_source.h"
20 #include "cc/test/test_context_provider.h" 20 #include "cc/test/test_context_provider.h"
21 #include "cc/test/test_shared_bitmap_manager.h"
22 #include "cc/tiles/picture_layer_tiling_set.h" 21 #include "cc/tiles/picture_layer_tiling_set.h"
23 #include "cc/trees/layer_tree_settings.h" 22 #include "cc/trees/layer_tree_settings.h"
24 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
25 #include "ui/gfx/geometry/quad_f.h" 24 #include "ui/gfx/geometry/quad_f.h"
26 #include "ui/gfx/geometry/rect_conversions.h" 25 #include "ui/gfx/geometry/rect_conversions.h"
27 #include "ui/gfx/geometry/size_conversions.h" 26 #include "ui/gfx/geometry/size_conversions.h"
28 27
29 namespace cc { 28 namespace cc {
30 namespace { 29 namespace {
31 30
(...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 // In this test, the left edge of tile #38 almost (but failed to) covered 1057 // In this test, the left edge of tile #38 almost (but failed to) covered
1059 // grid line x = 9653. Tile #37 needs to reach hard to x = 9654 to make up 1058 // grid line x = 9653. Tile #37 needs to reach hard to x = 9654 to make up
1060 // for this. 1059 // for this.
1061 Initialize(gfx::Size(256, 256), 1.f, gfx::Size(10000, 1)); 1060 Initialize(gfx::Size(256, 256), 1.f, gfx::Size(10000, 1));
1062 float dest_scale = 16778088.f / 16777216.f; // 0b1.00000000 00000011 01101000 1061 float dest_scale = 16778088.f / 16777216.f; // 0b1.00000000 00000011 01101000
1063 VerifyTilesExactlyCoverRect(dest_scale, gfx::Rect(10001, 2)); 1062 VerifyTilesExactlyCoverRect(dest_scale, gfx::Rect(10001, 2));
1064 } 1063 }
1065 1064
1066 } // namespace 1065 } // namespace
1067 } // namespace cc 1066 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/test_layer_tree_host_base.cc ('k') | cc/tiles/tile_manager_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698