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

Side by Side Diff: components/mus/surfaces/surfaces_context_provider.cc

Issue 1898803003: Don't set capabilities_.gpu.image in SurfacesContextProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: surface-image Created 4 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/mus/surfaces/surfaces_context_provider.h" 5 #include "components/mus/surfaces/surfaces_context_provider.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 13 matching lines...) Expand all
24 const size_t kDefaultCommandBufferSize = 1024 * 1024; 24 const size_t kDefaultCommandBufferSize = 1024 * 1024;
25 const size_t kDefaultStartTransferBufferSize = 1 * 1024 * 1024; 25 const size_t kDefaultStartTransferBufferSize = 1 * 1024 * 1024;
26 const size_t kDefaultMinTransferBufferSize = 1 * 256 * 1024; 26 const size_t kDefaultMinTransferBufferSize = 1 * 256 * 1024;
27 const size_t kDefaultMaxTransferBufferSize = 16 * 1024 * 1024; 27 const size_t kDefaultMaxTransferBufferSize = 16 * 1024 * 1024;
28 } 28 }
29 29
30 SurfacesContextProvider::SurfacesContextProvider( 30 SurfacesContextProvider::SurfacesContextProvider(
31 gfx::AcceleratedWidget widget, 31 gfx::AcceleratedWidget widget,
32 const scoped_refptr<GpuState>& state) 32 const scoped_refptr<GpuState>& state)
33 : delegate_(nullptr), widget_(widget), command_buffer_local_(nullptr) { 33 : delegate_(nullptr), widget_(widget), command_buffer_local_(nullptr) {
34 capabilities_.gpu.image = true;
35 command_buffer_local_ = new CommandBufferLocal(this, widget_, state); 34 command_buffer_local_ = new CommandBufferLocal(this, widget_, state);
36 } 35 }
37 36
38 void SurfacesContextProvider::SetDelegate( 37 void SurfacesContextProvider::SetDelegate(
39 SurfacesContextProviderDelegate* delegate) { 38 SurfacesContextProviderDelegate* delegate) {
40 DCHECK(!delegate_); 39 DCHECK(!delegate_);
41 delegate_ = delegate; 40 delegate_ = delegate;
42 } 41 }
43 42
44 // This routine needs to be safe to call more than once. 43 // This routine needs to be safe to call more than once.
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 swap_buffers_completion_callback_.Run(result); 124 swap_buffers_completion_callback_.Run(result);
126 } 125 }
127 } 126 }
128 127
129 void SurfacesContextProvider::SetSwapBuffersCompletionCallback( 128 void SurfacesContextProvider::SetSwapBuffersCompletionCallback(
130 gfx::GLSurface::SwapCompletionCallback callback) { 129 gfx::GLSurface::SwapCompletionCallback callback) {
131 swap_buffers_completion_callback_ = callback; 130 swap_buffers_completion_callback_ = callback;
132 } 131 }
133 132
134 } // namespace mus 133 } // namespace mus
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698