| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/output/texture_copier.h" | 5 #include "cc/output/texture_copier.h" |
| 6 | 6 |
| 7 #include "cc/test/test_web_graphics_context_3d.h" | 7 #include "cc/test/test_web_graphics_context_3d.h" |
| 8 #include "testing/gmock/include/gmock/gmock.h" | 8 #include "testing/gmock/include/gmock/gmock.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 #include "third_party/khronos/GLES2/gl2.h" | 10 #include "third_party/khronos/GLES2/gl2.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 EXPECT_CALL(*mock_context, | 62 EXPECT_CALL(*mock_context, |
| 63 texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR)); | 63 texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR)); |
| 64 EXPECT_CALL(*mock_context, bindFramebuffer(GL_FRAMEBUFFER, 0)); | 64 EXPECT_CALL(*mock_context, bindFramebuffer(GL_FRAMEBUFFER, 0)); |
| 65 EXPECT_CALL(*mock_context, enable(GL_SCISSOR_TEST)); | 65 EXPECT_CALL(*mock_context, enable(GL_SCISSOR_TEST)); |
| 66 } | 66 } |
| 67 | 67 |
| 68 int source_texture_id = mock_context->createTexture(); | 68 int source_texture_id = mock_context->createTexture(); |
| 69 int dest_texture_id = mock_context->createTexture(); | 69 int dest_texture_id = mock_context->createTexture(); |
| 70 gfx::Size size(256, 128); | 70 gfx::Size size(256, 128); |
| 71 scoped_ptr<AcceleratedTextureCopier> copier( | 71 scoped_ptr<AcceleratedTextureCopier> copier( |
| 72 AcceleratedTextureCopier::Create(mock_context.get(), false)); | 72 AcceleratedTextureCopier::Create(mock_context.get(), false, 0)); |
| 73 TextureCopier::Parameters copy = { source_texture_id, dest_texture_id, size }; | 73 TextureCopier::Parameters copy = { source_texture_id, dest_texture_id, size }; |
| 74 copier->CopyTexture(copy); | 74 copier->CopyTexture(copy); |
| 75 } | 75 } |
| 76 | 76 |
| 77 } // namespace | 77 } // namespace |
| 78 } // namespace cc | 78 } // namespace cc |
| OLD | NEW |