Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(798)

Side by Side Diff: content/common/gpu/client/context_provider_command_buffer.cc

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/common/gpu/client/context_provider_command_buffer.h ('k') | content/common/sandbox_linux/sandbox_seccomp_bpf_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698