| 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 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "cc/test/test_gpu_memory_buffer_manager.h" | 22 #include "cc/test/test_gpu_memory_buffer_manager.h" |
| 23 #include "cc/test/test_shared_bitmap_manager.h" | 23 #include "cc/test/test_shared_bitmap_manager.h" |
| 24 #include "cc/test/test_texture.h" | 24 #include "cc/test/test_texture.h" |
| 25 #include "cc/test/test_web_graphics_context_3d.h" | 25 #include "cc/test/test_web_graphics_context_3d.h" |
| 26 #include "cc/trees/blocking_task_runner.h" | 26 #include "cc/trees/blocking_task_runner.h" |
| 27 #include "gpu/GLES2/gl2extchromium.h" | 27 #include "gpu/GLES2/gl2extchromium.h" |
| 28 #include "testing/gmock/include/gmock/gmock.h" | 28 #include "testing/gmock/include/gmock/gmock.h" |
| 29 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
| 30 #include "third_party/khronos/GLES2/gl2.h" | 30 #include "third_party/khronos/GLES2/gl2.h" |
| 31 #include "third_party/khronos/GLES2/gl2ext.h" | 31 #include "third_party/khronos/GLES2/gl2ext.h" |
| 32 #include "ui/gfx/geometry/rect.h" |
| 32 #include "ui/gfx/gpu_memory_buffer.h" | 33 #include "ui/gfx/gpu_memory_buffer.h" |
| 33 #include "ui/gfx/rect.h" | |
| 34 | 34 |
| 35 using testing::Mock; | 35 using testing::Mock; |
| 36 using testing::NiceMock; | 36 using testing::NiceMock; |
| 37 using testing::Return; | 37 using testing::Return; |
| 38 using testing::SetArgPointee; | 38 using testing::SetArgPointee; |
| 39 using testing::StrictMock; | 39 using testing::StrictMock; |
| 40 using testing::_; | 40 using testing::_; |
| 41 | 41 |
| 42 namespace cc { | 42 namespace cc { |
| 43 namespace { | 43 namespace { |
| (...skipping 3595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3639 resource_provider->AllocateForTesting(id); | 3639 resource_provider->AllocateForTesting(id); |
| 3640 Mock::VerifyAndClearExpectations(context); | 3640 Mock::VerifyAndClearExpectations(context); |
| 3641 | 3641 |
| 3642 DCHECK_EQ(10u, context->PeekTextureId()); | 3642 DCHECK_EQ(10u, context->PeekTextureId()); |
| 3643 resource_provider->DeleteResource(id); | 3643 resource_provider->DeleteResource(id); |
| 3644 } | 3644 } |
| 3645 } | 3645 } |
| 3646 | 3646 |
| 3647 } // namespace | 3647 } // namespace |
| 3648 } // namespace cc | 3648 } // namespace cc |
| OLD | NEW |