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

Unified Diff: gpu/ipc/client/command_buffer_proxy_impl.h

Issue 1827123002: Move content/common/gpu/client to gpu/ipc/client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/ipc/client/DEPS ('k') | gpu/ipc/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/client/command_buffer_proxy_impl.h
diff --git a/content/common/gpu/client/command_buffer_proxy_impl.h b/gpu/ipc/client/command_buffer_proxy_impl.h
similarity index 95%
rename from content/common/gpu/client/command_buffer_proxy_impl.h
rename to gpu/ipc/client/command_buffer_proxy_impl.h
index b1d2dac073fb9fa16c9a1d1edf7e48dfddf4aa5f..cd72f7828844505d15c543cf786c2f3d206976d0 100644
--- a/content/common/gpu/client/command_buffer_proxy_impl.h
+++ b/gpu/ipc/client/command_buffer_proxy_impl.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
-#define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
+#ifndef GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
+#define GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
#include <stddef.h>
#include <stdint.h>
@@ -25,6 +25,7 @@
#include "gpu/command_buffer/common/command_buffer_id.h"
#include "gpu/command_buffer/common/command_buffer_shared.h"
#include "gpu/command_buffer/common/gpu_memory_allocation.h"
+#include "gpu/gpu_export.h"
#include "ipc/ipc_listener.h"
#include "ui/events/latency_info.h"
#include "ui/gfx/swap_result.h"
@@ -40,12 +41,12 @@ struct Mailbox;
struct SyncToken;
}
-namespace content {
+namespace gpu {
class GpuChannelHost;
// Client side proxy that forwards messages synchronously to a
// CommandBufferStub.
-class CommandBufferProxyImpl
+class GPU_EXPORT CommandBufferProxyImpl
: public gpu::CommandBuffer,
public gpu::GpuControl,
public IPC::Listener,
@@ -60,8 +61,8 @@ class CommandBufferProxyImpl
virtual ~DeletionObserver() {}
};
- typedef base::Callback<void(
- const std::string& msg, int id)> GpuConsoleMessageCallback;
+ typedef base::Callback<void(const std::string& msg, int id)>
+ GpuConsoleMessageCallback;
CommandBufferProxyImpl(GpuChannelHost* channel,
int32_t route_id,
@@ -119,8 +120,7 @@ class CommandBufferProxyImpl
bool EnsureBackbuffer();
- void SetOnConsoleMessageCallback(
- const GpuConsoleMessageCallback& callback);
+ void SetOnConsoleMessageCallback(const GpuConsoleMessageCallback& callback);
void SetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info);
using SwapBuffersCompletionCallback =
@@ -249,6 +249,6 @@ class CommandBufferProxyImpl
DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl);
};
-} // namespace content
+} // namespace gpu
-#endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
+#endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
« no previous file with comments | « gpu/ipc/client/DEPS ('k') | gpu/ipc/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698