| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/context_provider_command_buffer.h" | 5 #include "content/common/gpu/client/context_provider_command_buffer.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 ContextProviderCommandBuffer::SharedProviders::SharedProviders() = default; | 53 ContextProviderCommandBuffer::SharedProviders::SharedProviders() = default; |
| 54 ContextProviderCommandBuffer::SharedProviders::~SharedProviders() = default; | 54 ContextProviderCommandBuffer::SharedProviders::~SharedProviders() = default; |
| 55 | 55 |
| 56 ContextProviderCommandBuffer::ContextProviderCommandBuffer( | 56 ContextProviderCommandBuffer::ContextProviderCommandBuffer( |
| 57 scoped_refptr<gpu::GpuChannelHost> channel, | 57 scoped_refptr<gpu::GpuChannelHost> channel, |
| 58 int32_t stream_id, | 58 int32_t stream_id, |
| 59 gpu::GpuStreamPriority stream_priority, | 59 gpu::GpuStreamPriority stream_priority, |
| 60 gpu::SurfaceHandle surface_handle, | 60 gpu::SurfaceHandle surface_handle, |
| 61 const GURL& active_url, | 61 const GURL& active_url, |
| 62 gfx::GpuPreference gpu_preference, | 62 gl::GpuPreference gpu_preference, |
| 63 bool automatic_flushes, | 63 bool automatic_flushes, |
| 64 bool support_locking, | 64 bool support_locking, |
| 65 const gpu::SharedMemoryLimits& memory_limits, | 65 const gpu::SharedMemoryLimits& memory_limits, |
| 66 const gpu::gles2::ContextCreationAttribHelper& attributes, | 66 const gpu::gles2::ContextCreationAttribHelper& attributes, |
| 67 ContextProviderCommandBuffer* shared_context_provider, | 67 ContextProviderCommandBuffer* shared_context_provider, |
| 68 command_buffer_metrics::ContextType type) | 68 command_buffer_metrics::ContextType type) |
| 69 : stream_id_(stream_id), | 69 : stream_id_(stream_id), |
| 70 stream_priority_(stream_priority), | 70 stream_priority_(stream_priority), |
| 71 surface_handle_(surface_handle), | 71 surface_handle_(surface_handle), |
| 72 active_url_(active_url), | 72 active_url_(active_url), |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 | 328 |
| 329 void ContextProviderCommandBuffer::SetLostContextCallback( | 329 void ContextProviderCommandBuffer::SetLostContextCallback( |
| 330 const LostContextCallback& lost_context_callback) { | 330 const LostContextCallback& lost_context_callback) { |
| 331 DCHECK(context_thread_checker_.CalledOnValidThread()); | 331 DCHECK(context_thread_checker_.CalledOnValidThread()); |
| 332 DCHECK(lost_context_callback_.is_null() || | 332 DCHECK(lost_context_callback_.is_null() || |
| 333 lost_context_callback.is_null()); | 333 lost_context_callback.is_null()); |
| 334 lost_context_callback_ = lost_context_callback; | 334 lost_context_callback_ = lost_context_callback; |
| 335 } | 335 } |
| 336 | 336 |
| 337 } // namespace content | 337 } // namespace content |
| OLD | NEW |