| 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 2757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2768 bool(unsigned, const gfx::Point&, const gfx::Rect&)); | 2768 bool(unsigned, const gfx::Point&, const gfx::Rect&)); |
| 2769 MOCK_METHOD0(WillUseTexImage, void()); | 2769 MOCK_METHOD0(WillUseTexImage, void()); |
| 2770 MOCK_METHOD0(DidUseTexImage, void()); | 2770 MOCK_METHOD0(DidUseTexImage, void()); |
| 2771 MOCK_METHOD0(WillModifyTexImage, void()); | 2771 MOCK_METHOD0(WillModifyTexImage, void()); |
| 2772 MOCK_METHOD0(DidModifyTexImage, void()); | 2772 MOCK_METHOD0(DidModifyTexImage, void()); |
| 2773 MOCK_METHOD5(ScheduleOverlayPlane, bool(gfx::AcceleratedWidget, | 2773 MOCK_METHOD5(ScheduleOverlayPlane, bool(gfx::AcceleratedWidget, |
| 2774 int, | 2774 int, |
| 2775 gfx::OverlayTransform, | 2775 gfx::OverlayTransform, |
| 2776 const gfx::Rect&, | 2776 const gfx::Rect&, |
| 2777 const gfx::RectF&)); | 2777 const gfx::RectF&)); |
| 2778 MOCK_METHOD3(OnMemoryDump, |
| 2779 void(base::trace_event::ProcessMemoryDump*, |
| 2780 uint64_t, |
| 2781 const std::string&)); |
| 2778 | 2782 |
| 2779 protected: | 2783 protected: |
| 2780 virtual ~MockGLImage() {} | 2784 virtual ~MockGLImage() {} |
| 2781 }; | 2785 }; |
| 2782 | 2786 |
| 2783 TEST_P(GLES2DecoderWithShaderTest, UseTexImage) { | 2787 TEST_P(GLES2DecoderWithShaderTest, UseTexImage) { |
| 2784 DoBindTexture(GL_TEXTURE_2D, client_texture_id_, kServiceTextureId); | 2788 DoBindTexture(GL_TEXTURE_2D, client_texture_id_, kServiceTextureId); |
| 2785 DoTexImage2D(GL_TEXTURE_2D, | 2789 DoTexImage2D(GL_TEXTURE_2D, |
| 2786 0, | 2790 0, |
| 2787 GL_RGBA, | 2791 GL_RGBA, |
| (...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3281 // TODO(gman): CompressedTexSubImage2DImmediate | 3285 // TODO(gman): CompressedTexSubImage2DImmediate |
| 3282 | 3286 |
| 3283 // TODO(gman): TexImage2D | 3287 // TODO(gman): TexImage2D |
| 3284 | 3288 |
| 3285 // TODO(gman): TexImage2DImmediate | 3289 // TODO(gman): TexImage2DImmediate |
| 3286 | 3290 |
| 3287 // TODO(gman): TexSubImage2DImmediate | 3291 // TODO(gman): TexSubImage2DImmediate |
| 3288 | 3292 |
| 3289 } // namespace gles2 | 3293 } // namespace gles2 |
| 3290 } // namespace gpu | 3294 } // namespace gpu |
| OLD | NEW |