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 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h" | 5 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "gpu/command_buffer/client/gles2_cmd_helper.h" | 8 #include "gpu/command_buffer/client/gles2_cmd_helper.h" |
9 #include "gpu/command_buffer/client/gles2_implementation.h" | 9 #include "gpu/command_buffer/client/gles2_implementation.h" |
10 #include "gpu/command_buffer/client/transfer_buffer.h" | 10 #include "gpu/command_buffer/client/transfer_buffer.h" |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 false, | 118 false, |
119 true)); | 119 true)); |
120 | 120 |
121 if (!gles2_impl_->Initialize( | 121 if (!gles2_impl_->Initialize( |
122 transfer_buffer_size, | 122 transfer_buffer_size, |
123 kMinTransferBufferSize, | 123 kMinTransferBufferSize, |
124 std::max(kMaxTransferBufferSize, transfer_buffer_size))) { | 124 std::max(kMaxTransferBufferSize, transfer_buffer_size))) { |
125 return false; | 125 return false; |
126 } | 126 } |
127 | 127 |
| 128 gles2_impl_->PushGroupMarkerEXT(0, "PPAPIContext"); |
| 129 |
128 return true; | 130 return true; |
129 } | 131 } |
130 | 132 |
131 void PPB_Graphics3D_Shared::DestroyGLES2Impl() { | 133 void PPB_Graphics3D_Shared::DestroyGLES2Impl() { |
132 gles2_impl_.reset(); | 134 gles2_impl_.reset(); |
133 transfer_buffer_.reset(); | 135 transfer_buffer_.reset(); |
134 gles2_helper_.reset(); | 136 gles2_helper_.reset(); |
135 } | 137 } |
136 | 138 |
137 } // namespace ppapi | 139 } // namespace ppapi |
138 | 140 |
OLD | NEW |