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

Side by Side Diff: services/ui/public/cpp/gles2_context.cc

Issue 2511143004: mus: Split the gpu client-lib into a separate component. (Closed)
Patch Set: . Created 4 years, 1 month 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 "services/ui/public/cpp/gles2_context.h" 5 #include "services/ui/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 "gpu/command_buffer/client/gles2_cmd_helper.h" 12 #include "gpu/command_buffer/client/gles2_cmd_helper.h"
13 #include "gpu/command_buffer/client/shared_memory_limits.h" 13 #include "gpu/command_buffer/client/shared_memory_limits.h"
14 #include "gpu/command_buffer/client/transfer_buffer.h" 14 #include "gpu/command_buffer/client/transfer_buffer.h"
15 #include "gpu/ipc/client/command_buffer_proxy_impl.h" 15 #include "gpu/ipc/client/command_buffer_proxy_impl.h"
16 #include "gpu/ipc/client/gpu_channel_host.h" 16 #include "gpu/ipc/client/gpu_channel_host.h"
17 #include "mojo/public/cpp/system/core.h" 17 #include "mojo/public/cpp/system/core.h"
18 #include "services/ui/public/cpp/gpu_service.h"
19 #include "services/ui/public/interfaces/gpu_service.mojom.h"
20 #include "url/gurl.h" 18 #include "url/gurl.h"
21 19
22 namespace ui { 20 namespace ui {
23 21
24 GLES2Context::GLES2Context() {} 22 GLES2Context::GLES2Context() {}
25 23
26 GLES2Context::~GLES2Context() {} 24 GLES2Context::~GLES2Context() {}
27 25
28 bool GLES2Context::Initialize( 26 bool GLES2Context::Initialize(
29 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host, 27 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // Return the GLES2Context only if it is successfully initialized. If 79 // Return the GLES2Context only if it is successfully initialized. If
82 // initialization fails, then return null. 80 // initialization fails, then return null.
83 std::unique_ptr<GLES2Context> gles2_context(new GLES2Context); 81 std::unique_ptr<GLES2Context> gles2_context(new GLES2Context);
84 if (!gles2_context->Initialize(std::move(gpu_channel_host), 82 if (!gles2_context->Initialize(std::move(gpu_channel_host),
85 std::move(task_runner))) 83 std::move(task_runner)))
86 gles2_context.reset(); 84 gles2_context.reset();
87 return gles2_context; 85 return gles2_context;
88 } 86 }
89 87
90 } // namespace ui 88 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698