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

Side by Side Diff: components/mus/public/cpp/lib/gles2_context.cc

Issue 2020293003: Use mus::MojoGpuMemoryBufferManager in mus::GpuService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update 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 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/public/cpp/gles2_context.h" 5 #include "components/mus/public/cpp/gles2_context.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <utility> 10 #include <utility>
11 11
12 #include "components/mus/common/gpu_service.h"
12 #include "components/mus/public/cpp/lib/command_buffer_client_impl.h" 13 #include "components/mus/public/cpp/lib/command_buffer_client_impl.h"
13 #include "components/mus/public/cpp/lib/gpu_service.h"
14 #include "components/mus/public/interfaces/command_buffer.mojom.h" 14 #include "components/mus/public/interfaces/command_buffer.mojom.h"
15 #include "components/mus/public/interfaces/gpu_service.mojom.h" 15 #include "components/mus/public/interfaces/gpu_service.mojom.h"
16 #include "gpu/command_buffer/client/gles2_cmd_helper.h" 16 #include "gpu/command_buffer/client/gles2_cmd_helper.h"
17 #include "gpu/command_buffer/client/shared_memory_limits.h" 17 #include "gpu/command_buffer/client/shared_memory_limits.h"
18 #include "gpu/command_buffer/client/transfer_buffer.h" 18 #include "gpu/command_buffer/client/transfer_buffer.h"
19 #include "gpu/ipc/client/command_buffer_proxy_impl.h" 19 #include "gpu/ipc/client/command_buffer_proxy_impl.h"
20 #include "mojo/public/cpp/system/core.h" 20 #include "mojo/public/cpp/system/core.h"
21 #include "services/shell/public/cpp/connector.h" 21 #include "services/shell/public/cpp/connector.h"
22 #include "url/gurl.h" 22 #include "url/gurl.h"
23 23
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 std::unique_ptr<GLES2Context> GLES2Context::CreateOffscreenContext( 101 std::unique_ptr<GLES2Context> GLES2Context::CreateOffscreenContext(
102 const std::vector<int32_t>& attribs, 102 const std::vector<int32_t>& attribs,
103 shell::Connector* connector) { 103 shell::Connector* connector) {
104 std::unique_ptr<GLES2Context> gles2_context(new GLES2Context); 104 std::unique_ptr<GLES2Context> gles2_context(new GLES2Context);
105 if (!gles2_context->Initialize(attribs, connector)) 105 if (!gles2_context->Initialize(attribs, connector))
106 gles2_context.reset(); 106 gles2_context.reset();
107 return gles2_context; 107 return gles2_context;
108 } 108 }
109 109
110 } // namespace mus 110 } // namespace mus
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698