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 #ifndef GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ | 5 #ifndef GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
6 #define GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ | 6 #define GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
| 10 #include <memory> |
10 #include <string> | 11 #include <string> |
11 #include <vector> | 12 #include <vector> |
12 | 13 |
13 #include "base/callback.h" | 14 #include "base/callback.h" |
14 #include "base/memory/scoped_ptr.h" | |
15 #include "gpu/blink/gpu_blink_export.h" | 15 #include "gpu/blink/gpu_blink_export.h" |
16 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" | 16 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
17 #include "third_party/WebKit/public/platform/WebString.h" | 17 #include "third_party/WebKit/public/platform/WebString.h" |
18 | 18 |
19 namespace gpu { | 19 namespace gpu { |
20 | 20 |
21 namespace gles2 { | 21 namespace gles2 { |
22 class GLES2Interface; | 22 class GLES2Interface; |
23 class GLES2ImplementationErrorMessageCallback; | 23 class GLES2ImplementationErrorMessageCallback; |
24 struct ContextCreationAttribHelper; | 24 struct ContextCreationAttribHelper; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 void SetGLInterface(::gpu::gles2::GLES2Interface* gl) { gl_ = gl; } | 59 void SetGLInterface(::gpu::gles2::GLES2Interface* gl) { gl_ = gl; } |
60 | 60 |
61 bool initialized_; | 61 bool initialized_; |
62 bool initialize_failed_; | 62 bool initialize_failed_; |
63 | 63 |
64 WebGraphicsContext3D::WebGraphicsContextLostCallback* context_lost_callback_; | 64 WebGraphicsContext3D::WebGraphicsContextLostCallback* context_lost_callback_; |
65 | 65 |
66 WebGraphicsContext3D::WebGraphicsErrorMessageCallback* | 66 WebGraphicsContext3D::WebGraphicsErrorMessageCallback* |
67 error_message_callback_; | 67 error_message_callback_; |
68 scoped_ptr<WebGraphicsContext3DErrorMessageCallback> | 68 std::unique_ptr<WebGraphicsContext3DErrorMessageCallback> |
69 client_error_message_callback_; | 69 client_error_message_callback_; |
70 | 70 |
71 ::gpu::gles2::GLES2Interface* gl_; | 71 ::gpu::gles2::GLES2Interface* gl_; |
72 bool lose_context_when_out_of_memory_; | 72 bool lose_context_when_out_of_memory_; |
73 }; | 73 }; |
74 | 74 |
75 } // namespace gpu_blink | 75 } // namespace gpu_blink |
76 | 76 |
77 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ | 77 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
OLD | NEW |