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 "gpu/command_buffer/service/gles2_cmd_decoder.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 9 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
(...skipping 2265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2276 | 2276 |
2277 // Overridden from gfx::GLImage: | 2277 // Overridden from gfx::GLImage: |
2278 MOCK_METHOD0(Destroy, void()); | 2278 MOCK_METHOD0(Destroy, void()); |
2279 MOCK_METHOD0(GetSize, gfx::Size()); | 2279 MOCK_METHOD0(GetSize, gfx::Size()); |
2280 MOCK_METHOD1(BindTexImage, bool(unsigned)); | 2280 MOCK_METHOD1(BindTexImage, bool(unsigned)); |
2281 MOCK_METHOD1(ReleaseTexImage, void(unsigned)); | 2281 MOCK_METHOD1(ReleaseTexImage, void(unsigned)); |
2282 MOCK_METHOD0(WillUseTexImage, void()); | 2282 MOCK_METHOD0(WillUseTexImage, void()); |
2283 MOCK_METHOD0(DidUseTexImage, void()); | 2283 MOCK_METHOD0(DidUseTexImage, void()); |
2284 MOCK_METHOD0(WillModifyTexImage, void()); | 2284 MOCK_METHOD0(WillModifyTexImage, void()); |
2285 MOCK_METHOD0(DidModifyTexImage, void()); | 2285 MOCK_METHOD0(DidModifyTexImage, void()); |
| 2286 MOCK_METHOD5(ScheduleOverlayPlane, bool(gfx::AcceleratedWidget, |
| 2287 int, |
| 2288 gfx::OverlayTransform, |
| 2289 const gfx::Rect&, |
| 2290 const gfx::RectF&)); |
2286 | 2291 |
2287 protected: | 2292 protected: |
2288 virtual ~MockGLImage() {} | 2293 virtual ~MockGLImage() {} |
2289 }; | 2294 }; |
2290 | 2295 |
2291 TEST_P(GLES2DecoderWithShaderTest, UseTexImage) { | 2296 TEST_P(GLES2DecoderWithShaderTest, UseTexImage) { |
2292 DoBindTexture(GL_TEXTURE_2D, client_texture_id_, kServiceTextureId); | 2297 DoBindTexture(GL_TEXTURE_2D, client_texture_id_, kServiceTextureId); |
2293 DoTexImage2D(GL_TEXTURE_2D, | 2298 DoTexImage2D(GL_TEXTURE_2D, |
2294 0, | 2299 0, |
2295 GL_RGBA, | 2300 GL_RGBA, |
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2827 // TODO(gman): CompressedTexSubImage2DImmediate | 2832 // TODO(gman): CompressedTexSubImage2DImmediate |
2828 | 2833 |
2829 // TODO(gman): TexImage2D | 2834 // TODO(gman): TexImage2D |
2830 | 2835 |
2831 // TODO(gman): TexImage2DImmediate | 2836 // TODO(gman): TexImage2DImmediate |
2832 | 2837 |
2833 // TODO(gman): TexSubImage2DImmediate | 2838 // TODO(gman): TexSubImage2DImmediate |
2834 | 2839 |
2835 } // namespace gles2 | 2840 } // namespace gles2 |
2836 } // namespace gpu | 2841 } // namespace gpu |
OLD | NEW |