OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 GLES2Decoder class. | 5 // This file contains the GLES2Decoder class. |
6 | 6 |
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
9 | 9 |
10 #include <build/build_config.h> | 10 #include <build/build_config.h> |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 #endif | 56 #endif |
57 | 57 |
58 // Initializes the graphics context. | 58 // Initializes the graphics context. |
59 // Returns: | 59 // Returns: |
60 // true if successful. | 60 // true if successful. |
61 virtual bool Initialize() = 0; | 61 virtual bool Initialize() = 0; |
62 | 62 |
63 // Destroys the graphics context. | 63 // Destroys the graphics context. |
64 virtual void Destroy() = 0; | 64 virtual void Destroy() = 0; |
65 | 65 |
| 66 // Gets a service id by client id. |
| 67 virtual uint32 GetServiceIdForTesting(uint32 client_id) = 0; |
| 68 |
66 protected: | 69 protected: |
67 GLES2Decoder(); | 70 GLES2Decoder(); |
68 | 71 |
69 private: | 72 private: |
70 bool debug_; | 73 bool debug_; |
71 | 74 |
72 #if defined(OS_LINUX) | 75 #if defined(OS_LINUX) |
73 XWindowWrapper *window_; | 76 XWindowWrapper *window_; |
74 #elif defined(OS_WIN) | 77 #elif defined(OS_WIN) |
75 // Handle to the GL device. | 78 // Handle to the GL device. |
76 HWND hwnd_; | 79 HWND hwnd_; |
77 #endif | 80 #endif |
78 | 81 |
79 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 82 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
80 }; | 83 }; |
81 | 84 |
82 } // namespace gles2 | 85 } // namespace gles2 |
83 } // namespace gpu | 86 } // namespace gpu |
84 | 87 |
85 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 88 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
OLD | NEW |