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 "services/ui/public/cpp/gpu/context_provider_command_buffer.h" | 5 #include "services/ui/public/cpp/gpu/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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 } // namespace | 145 } // namespace |
146 | 146 |
147 namespace ui { | 147 namespace ui { |
148 | 148 |
149 ContextProviderCommandBuffer::SharedProviders::SharedProviders() = default; | 149 ContextProviderCommandBuffer::SharedProviders::SharedProviders() = default; |
150 ContextProviderCommandBuffer::SharedProviders::~SharedProviders() = default; | 150 ContextProviderCommandBuffer::SharedProviders::~SharedProviders() = default; |
151 | 151 |
152 ContextProviderCommandBuffer::ContextProviderCommandBuffer( | 152 ContextProviderCommandBuffer::ContextProviderCommandBuffer( |
153 scoped_refptr<gpu::GpuChannelHost> channel, | 153 scoped_refptr<gpu::GpuChannelHost> channel, |
154 int32_t stream_id, | 154 int32_t stream_id, |
155 gpu::SchedulingPriority stream_priority, | 155 gpu::GpuStreamPriority stream_priority, |
156 gpu::SurfaceHandle surface_handle, | 156 gpu::SurfaceHandle surface_handle, |
157 const GURL& active_url, | 157 const GURL& active_url, |
158 bool automatic_flushes, | 158 bool automatic_flushes, |
159 bool support_locking, | 159 bool support_locking, |
160 const gpu::SharedMemoryLimits& memory_limits, | 160 const gpu::SharedMemoryLimits& memory_limits, |
161 const gpu::gles2::ContextCreationAttribHelper& attributes, | 161 const gpu::gles2::ContextCreationAttribHelper& attributes, |
162 ContextProviderCommandBuffer* shared_context_provider, | 162 ContextProviderCommandBuffer* shared_context_provider, |
163 command_buffer_metrics::ContextType type) | 163 command_buffer_metrics::ContextType type) |
164 : stream_id_(stream_id), | 164 : stream_id_(stream_id), |
165 stream_priority_(stream_priority), | 165 stream_priority_(stream_priority), |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 context_thread_checker_.DetachFromThread(); | 458 context_thread_checker_.DetachFromThread(); |
459 SkiaGpuTraceMemoryDump trace_memory_dump( | 459 SkiaGpuTraceMemoryDump trace_memory_dump( |
460 pmd, gles2_impl_->ShareGroupTracingGUID()); | 460 pmd, gles2_impl_->ShareGroupTracingGUID()); |
461 gr_context_->get()->dumpMemoryStatistics(&trace_memory_dump); | 461 gr_context_->get()->dumpMemoryStatistics(&trace_memory_dump); |
462 context_thread_checker_.DetachFromThread(); | 462 context_thread_checker_.DetachFromThread(); |
463 } | 463 } |
464 return true; | 464 return true; |
465 } | 465 } |
466 | 466 |
467 } // namespace ui | 467 } // namespace ui |
OLD | NEW |