OLD | NEW |
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/resources/scoped_resource.h" | 5 #include "cc/resources/scoped_resource.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "cc/output/renderer.h" | 9 #include "cc/output/renderer.h" |
8 #include "cc/test/fake_output_surface.h" | 10 #include "cc/test/fake_output_surface.h" |
9 #include "cc/test/fake_output_surface_client.h" | 11 #include "cc/test/fake_output_surface_client.h" |
10 #include "cc/test/fake_resource_provider.h" | 12 #include "cc/test/fake_resource_provider.h" |
11 #include "cc/test/test_shared_bitmap_manager.h" | 13 #include "cc/test/test_shared_bitmap_manager.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
13 | 15 |
14 namespace cc { | 16 namespace cc { |
15 namespace { | 17 namespace { |
16 | 18 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 ResourceProvider::TEXTURE_HINT_IMMUTABLE, RGBA_8888); | 90 ResourceProvider::TEXTURE_HINT_IMMUTABLE, RGBA_8888); |
89 EXPECT_LT(0u, texture->id()); | 91 EXPECT_LT(0u, texture->id()); |
90 EXPECT_EQ(1u, resource_provider->num_resources()); | 92 EXPECT_EQ(1u, resource_provider->num_resources()); |
91 texture->Free(); | 93 texture->Free(); |
92 EXPECT_EQ(0u, resource_provider->num_resources()); | 94 EXPECT_EQ(0u, resource_provider->num_resources()); |
93 } | 95 } |
94 } | 96 } |
95 | 97 |
96 } // namespace | 98 } // namespace |
97 } // namespace cc | 99 } // namespace cc |
OLD | NEW |