| 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/resource_provider.h" | 5 #include "cc/resources/resource_provider.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <map> |
| 8 | 9 |
| 9 #include "base/bind.h" | 10 #include "base/bind.h" |
| 10 #include "base/containers/hash_tables.h" | 11 #include "base/containers/hash_tables.h" |
| 11 #include "base/logging.h" | 12 #include "base/logging.h" |
| 12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 13 #include "cc/base/scoped_ptr_deque.h" | 14 #include "cc/base/scoped_ptr_deque.h" |
| 14 #include "cc/debug/test_texture.h" | |
| 15 #include "cc/debug/test_web_graphics_context_3d.h" | |
| 16 #include "cc/output/output_surface.h" | 15 #include "cc/output/output_surface.h" |
| 17 #include "cc/resources/returned_resource.h" | 16 #include "cc/resources/returned_resource.h" |
| 18 #include "cc/resources/shared_bitmap_manager.h" | 17 #include "cc/resources/shared_bitmap_manager.h" |
| 19 #include "cc/resources/single_release_callback.h" | 18 #include "cc/resources/single_release_callback.h" |
| 20 #include "cc/test/fake_output_surface.h" | 19 #include "cc/test/fake_output_surface.h" |
| 21 #include "cc/test/fake_output_surface_client.h" | 20 #include "cc/test/fake_output_surface_client.h" |
| 21 #include "cc/test/test_texture.h" |
| 22 #include "cc/test/test_web_graphics_context_3d.h" |
| 22 #include "gpu/GLES2/gl2extchromium.h" | 23 #include "gpu/GLES2/gl2extchromium.h" |
| 23 #include "testing/gmock/include/gmock/gmock.h" | 24 #include "testing/gmock/include/gmock/gmock.h" |
| 24 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
| 25 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" | 26 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
| 26 #include "third_party/khronos/GLES2/gl2.h" | 27 #include "third_party/khronos/GLES2/gl2.h" |
| 27 #include "third_party/khronos/GLES2/gl2ext.h" | 28 #include "third_party/khronos/GLES2/gl2ext.h" |
| 28 #include "ui/gfx/rect.h" | 29 #include "ui/gfx/rect.h" |
| 29 | 30 |
| 30 using testing::Mock; | 31 using testing::Mock; |
| 31 using testing::NiceMock; | 32 using testing::NiceMock; |
| (...skipping 2874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2906 resource_provider->DeleteResource(id); | 2907 resource_provider->DeleteResource(id); |
| 2907 } | 2908 } |
| 2908 | 2909 |
| 2909 INSTANTIATE_TEST_CASE_P( | 2910 INSTANTIATE_TEST_CASE_P( |
| 2910 ResourceProviderTests, | 2911 ResourceProviderTests, |
| 2911 ResourceProviderTest, | 2912 ResourceProviderTest, |
| 2912 ::testing::Values(ResourceProvider::GLTexture, ResourceProvider::Bitmap)); | 2913 ::testing::Values(ResourceProvider::GLTexture, ResourceProvider::Bitmap)); |
| 2913 | 2914 |
| 2914 } // namespace | 2915 } // namespace |
| 2915 } // namespace cc | 2916 } // namespace cc |
| OLD | NEW |