| 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 // A class to emulate GLES2 over command buffers. | 5 // A class to emulate GLES2 over command buffers. |
| 6 | 6 |
| 7 #include "gpu/command_buffer/client/gles2_implementation.h" | 7 #include "gpu/command_buffer/client/gles2_implementation.h" |
| 8 | 8 |
| 9 #include <GLES2/gl2ext.h> | 9 #include <GLES2/gl2ext.h> |
| 10 #include <GLES2/gl2extchromium.h> | 10 #include <GLES2/gl2extchromium.h> |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 weak_ptr_factory_(this) { | 104 weak_ptr_factory_(this) { |
| 105 DCHECK(helper); | 105 DCHECK(helper); |
| 106 DCHECK(transfer_buffer); | 106 DCHECK(transfer_buffer); |
| 107 DCHECK(gpu_control); | 107 DCHECK(gpu_control); |
| 108 | 108 |
| 109 std::stringstream ss; | 109 std::stringstream ss; |
| 110 ss << std::hex << this; | 110 ss << std::hex << this; |
| 111 this_in_hex_ = ss.str(); | 111 this_in_hex_ = ss.str(); |
| 112 | 112 |
| 113 GPU_CLIENT_LOG_CODE_BLOCK({ | 113 GPU_CLIENT_LOG_CODE_BLOCK({ |
| 114 debug_ = CommandLine::ForCurrentProcess()->HasSwitch( | 114 debug_ = base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 115 switches::kEnableGPUClientLogging); | 115 switches::kEnableGPUClientLogging); |
| 116 }); | 116 }); |
| 117 | 117 |
| 118 share_group_ = | 118 share_group_ = |
| 119 (share_group ? share_group : new ShareGroup(bind_generates_resource)); | 119 (share_group ? share_group : new ShareGroup(bind_generates_resource)); |
| 120 DCHECK(share_group_->bind_generates_resource() == bind_generates_resource); | 120 DCHECK(share_group_->bind_generates_resource() == bind_generates_resource); |
| 121 | 121 |
| 122 memset(&reserved_ids_, 0, sizeof(reserved_ids_)); | 122 memset(&reserved_ids_, 0, sizeof(reserved_ids_)); |
| 123 } | 123 } |
| 124 | 124 |
| (...skipping 3913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4038 return false; | 4038 return false; |
| 4039 } | 4039 } |
| 4040 | 4040 |
| 4041 // Include the auto-generated part of this file. We split this because it means | 4041 // Include the auto-generated part of this file. We split this because it means |
| 4042 // we can easily edit the non-auto generated parts right here in this file | 4042 // we can easily edit the non-auto generated parts right here in this file |
| 4043 // instead of having to edit some template or the code generator. | 4043 // instead of having to edit some template or the code generator. |
| 4044 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" | 4044 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" |
| 4045 | 4045 |
| 4046 } // namespace gles2 | 4046 } // namespace gles2 |
| 4047 } // namespace gpu | 4047 } // namespace gpu |
| OLD | NEW |