| 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/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" |
| 11 | 11 |
| 12 using namespace WebKit; | 12 using namespace WebKit; |
| 13 using testing::InSequence; | 13 using testing::InSequence; |
| 14 using testing::Test; | 14 using testing::Test; |
| 15 using testing::_; | 15 using testing::_; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 int dest_texture_id = mock_context->createTexture(); | 64 int dest_texture_id = mock_context->createTexture(); |
| 65 gfx::Size size(256, 128); | 65 gfx::Size size(256, 128); |
| 66 scoped_ptr<AcceleratedTextureCopier> copier( | 66 scoped_ptr<AcceleratedTextureCopier> copier( |
| 67 AcceleratedTextureCopier::Create(mock_context.get(), false)); | 67 AcceleratedTextureCopier::Create(mock_context.get(), false)); |
| 68 TextureCopier::Parameters copy = { source_texture_id, dest_texture_id, size }; | 68 TextureCopier::Parameters copy = { source_texture_id, dest_texture_id, size }; |
| 69 copier->CopyTexture(copy); | 69 copier->CopyTexture(copy); |
| 70 } | 70 } |
| 71 | 71 |
| 72 } // namespace | 72 } // namespace |
| 73 } // namespace cc | 73 } // namespace cc |
| OLD | NEW |