| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This file contains the mock GLES2Decoder class. | 5 // This file contains the mock GLES2Decoder class. |
| 6 | 6 |
| 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
| 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "gpu/command_buffer/common/mailbox.h" | 12 #include "gpu/command_buffer/common/mailbox.h" |
| 13 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 13 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
| 14 #include "base/callback_forward.h" | 14 #include "base/callback_forward.h" |
| 15 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
| 16 #include "ui/gfx/size.h" | 16 #include "ui/gfx/size.h" |
| 17 | 17 |
| 18 namespace gfx { | 18 namespace gfx { |
| 19 class GLContext; | 19 class GLContext; |
| 20 class GLSurface; | 20 class GLSurface; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace gpu { | 23 namespace gpu { |
| 24 class StreamTextureManager; | |
| 25 | |
| 26 namespace gles2 { | 24 namespace gles2 { |
| 27 | 25 |
| 28 class ContextGroup; | 26 class ContextGroup; |
| 29 class ErrorState; | 27 class ErrorState; |
| 30 class QueryManager; | 28 class QueryManager; |
| 31 | 29 |
| 32 class MockGLES2Decoder : public GLES2Decoder { | 30 class MockGLES2Decoder : public GLES2Decoder { |
| 33 public: | 31 public: |
| 34 MockGLES2Decoder(); | 32 MockGLES2Decoder(); |
| 35 virtual ~MockGLES2Decoder(); | 33 virtual ~MockGLES2Decoder(); |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 MOCK_METHOD0(WasContextLostByRobustnessExtension, bool()); | 110 MOCK_METHOD0(WasContextLostByRobustnessExtension, bool()); |
| 113 MOCK_METHOD1(LoseContext, void(uint32 reset_status)); | 111 MOCK_METHOD1(LoseContext, void(uint32 reset_status)); |
| 114 | 112 |
| 115 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); | 113 DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder); |
| 116 }; | 114 }; |
| 117 | 115 |
| 118 } // namespace gles2 | 116 } // namespace gles2 |
| 119 } // namespace gpu | 117 } // namespace gpu |
| 120 | 118 |
| 121 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ | 119 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_MOCK_H_ |
| OLD | NEW |