| OLD | NEW |
| 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 "content/browser/compositor/buffer_queue.h" | 5 #include "content/browser/compositor/buffer_queue.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <utility> | 10 #include <utility> |
| 11 | 11 |
| 12 #include "cc/test/test_context_provider.h" | 12 #include "cc/test/test_context_provider.h" |
| 13 #include "cc/test/test_web_graphics_context_3d.h" | 13 #include "cc/test/test_web_graphics_context_3d.h" |
| 14 #include "content/browser/compositor/gl_helper.h" |
| 14 #include "content/browser/compositor/gpu_surfaceless_browser_compositor_output_s
urface.h" | 15 #include "content/browser/compositor/gpu_surfaceless_browser_compositor_output_s
urface.h" |
| 15 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" | 16 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" |
| 16 #include "content/common/gpu/client/gl_helper.h" | |
| 17 #include "gpu/GLES2/gl2extchromium.h" | 17 #include "gpu/GLES2/gl2extchromium.h" |
| 18 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 20 #include "third_party/khronos/GLES2/gl2ext.h" | 20 #include "third_party/khronos/GLES2/gl2ext.h" |
| 21 | 21 |
| 22 using ::testing::_; | 22 using ::testing::_; |
| 23 using ::testing::Expectation; | 23 using ::testing::Expectation; |
| 24 using ::testing::Ne; | 24 using ::testing::Ne; |
| 25 using ::testing::Return; | 25 using ::testing::Return; |
| 26 | 26 |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 testing::Mock::VerifyAndClearExpectations(mock_output_surface_); | 614 testing::Mock::VerifyAndClearExpectations(mock_output_surface_); |
| 615 EXPECT_CALL(*mock_output_surface_, | 615 EXPECT_CALL(*mock_output_surface_, |
| 616 CopyBufferDamage(target_texture, source_texture, small_damage, _)) | 616 CopyBufferDamage(target_texture, source_texture, small_damage, _)) |
| 617 .Times(1); | 617 .Times(1); |
| 618 output_surface_->SwapBuffers(small_damage); | 618 output_surface_->SwapBuffers(small_damage); |
| 619 testing::Mock::VerifyAndClearExpectations(mock_output_surface_); | 619 testing::Mock::VerifyAndClearExpectations(mock_output_surface_); |
| 620 } | 620 } |
| 621 | 621 |
| 622 } // namespace | 622 } // namespace |
| 623 } // namespace content | 623 } // namespace content |
| OLD | NEW |