| 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 "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 5 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
| 6 | 6 |
| 7 #include "third_party/khronos/GLES2/gl2.h" | 7 #include "third_party/khronos/GLES2/gl2.h" |
| 8 #ifndef GL_GLEXT_PROTOTYPES | 8 #ifndef GL_GLEXT_PROTOTYPES |
| 9 #define GL_GLEXT_PROTOTYPES 1 | 9 #define GL_GLEXT_PROTOTYPES 1 |
| 10 #endif | 10 #endif |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "gpu/command_buffer/client/gles2_cmd_helper.h" | 30 #include "gpu/command_buffer/client/gles2_cmd_helper.h" |
| 31 #include "gpu/command_buffer/client/gles2_implementation.h" | 31 #include "gpu/command_buffer/client/gles2_implementation.h" |
| 32 #include "gpu/command_buffer/client/gles2_trace_implementation.h" | 32 #include "gpu/command_buffer/client/gles2_trace_implementation.h" |
| 33 #include "gpu/command_buffer/client/transfer_buffer.h" | 33 #include "gpu/command_buffer/client/transfer_buffer.h" |
| 34 #include "gpu/command_buffer/common/constants.h" | 34 #include "gpu/command_buffer/common/constants.h" |
| 35 #include "gpu/command_buffer/common/gpu_memory_allocation.h" | 35 #include "gpu/command_buffer/common/gpu_memory_allocation.h" |
| 36 #include "gpu/command_buffer/common/mailbox.h" | 36 #include "gpu/command_buffer/common/mailbox.h" |
| 37 #include "gpu/skia_bindings/gl_bindings_skia_cmd_buffer.h" | 37 #include "gpu/skia_bindings/gl_bindings_skia_cmd_buffer.h" |
| 38 #include "third_party/skia/include/core/SkTypes.h" | 38 #include "third_party/skia/include/core/SkTypes.h" |
| 39 | 39 |
| 40 using blink::WGC3Denum; |
| 41 |
| 40 namespace content { | 42 namespace content { |
| 41 | 43 |
| 42 namespace { | 44 namespace { |
| 43 | 45 |
| 44 static base::LazyInstance<base::Lock>::Leaky | 46 static base::LazyInstance<base::Lock>::Leaky |
| 45 g_default_share_groups_lock = LAZY_INSTANCE_INITIALIZER; | 47 g_default_share_groups_lock = LAZY_INSTANCE_INITIALIZER; |
| 46 | 48 |
| 47 typedef std::map<GpuChannelHost*, | 49 typedef std::map<GpuChannelHost*, |
| 48 scoped_refptr<WebGraphicsContext3DCommandBufferImpl::ShareGroup> > | 50 scoped_refptr<WebGraphicsContext3DCommandBufferImpl::ShareGroup> > |
| 49 ShareGroupMap; | 51 ShareGroupMap; |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 share_group_->RemoveAllContexts(); | 407 share_group_->RemoveAllContexts(); |
| 406 | 408 |
| 407 DCHECK(host_.get()); | 409 DCHECK(host_.get()); |
| 408 { | 410 { |
| 409 base::AutoLock lock(g_default_share_groups_lock.Get()); | 411 base::AutoLock lock(g_default_share_groups_lock.Get()); |
| 410 g_default_share_groups.Get().erase(host_.get()); | 412 g_default_share_groups.Get().erase(host_.get()); |
| 411 } | 413 } |
| 412 } | 414 } |
| 413 | 415 |
| 414 } // namespace content | 416 } // namespace content |
| OLD | NEW |