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

Unified Diff: services/ui/public/cpp/gpu/context_provider_command_buffer.cc

Issue 2584363002: gpu: Move ContextProviderCommandBuffer into mus gpu client-lib. (Closed)
Patch Set: tot merge Created 4 years 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 | « services/ui/public/cpp/gpu/context_provider_command_buffer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/gpu/context_provider_command_buffer.cc
diff --git a/content/common/gpu/client/context_provider_command_buffer.cc b/services/ui/public/cpp/gpu/context_provider_command_buffer.cc
similarity index 98%
rename from content/common/gpu/client/context_provider_command_buffer.cc
rename to services/ui/public/cpp/gpu/context_provider_command_buffer.cc
index 74756be6c0076b3615da4d59aa6a234c6c6bb827..12034d266b7e882ec9e4126d9ab96fae09d05bad 100644
--- a/content/common/gpu/client/context_provider_command_buffer.cc
+++ b/services/ui/public/cpp/gpu/context_provider_command_buffer.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/common/gpu/client/context_provider_command_buffer.h"
+#include "services/ui/public/cpp/gpu/context_provider_command_buffer.h"
#include <stddef.h>
@@ -19,7 +19,6 @@
#include "base/trace_event/memory_dump_manager.h"
#include "cc/output/context_cache_controller.h"
#include "cc/output/managed_memory_policy.h"
-#include "content/common/gpu/client/command_buffer_metrics.h"
#include "gpu/command_buffer/client/gles2_cmd_helper.h"
#include "gpu/command_buffer/client/gles2_implementation.h"
#include "gpu/command_buffer/client/gles2_trace_implementation.h"
@@ -29,6 +28,7 @@
#include "gpu/ipc/client/command_buffer_proxy_impl.h"
#include "gpu/ipc/client/gpu_channel_host.h"
#include "gpu/skia_bindings/grcontext_for_gles2_interface.h"
+#include "services/ui/public/cpp/gpu/command_buffer_metrics.h"
#include "third_party/skia/include/core/SkTraceMemoryDump.h"
#include "third_party/skia/include/gpu/GrContext.h"
#include "ui/gl/trace_util.h"
@@ -144,7 +144,7 @@ class SkiaGpuTraceMemoryDump : public SkTraceMemoryDump {
} // namespace
-namespace content {
+namespace ui {
ContextProviderCommandBuffer::SharedProviders::SharedProviders() = default;
ContextProviderCommandBuffer::SharedProviders::~SharedProviders() = default;
@@ -438,8 +438,7 @@ void ContextProviderCommandBuffer::OnLostContext() {
void ContextProviderCommandBuffer::SetLostContextCallback(
const LostContextCallback& lost_context_callback) {
DCHECK(context_thread_checker_.CalledOnValidThread());
- DCHECK(lost_context_callback_.is_null() ||
- lost_context_callback.is_null());
+ DCHECK(lost_context_callback_.is_null() || lost_context_callback.is_null());
lost_context_callback_ = lost_context_callback;
}
@@ -465,4 +464,4 @@ bool ContextProviderCommandBuffer::OnMemoryDump(
return true;
}
-} // namespace content
+} // namespace ui
« no previous file with comments | « services/ui/public/cpp/gpu/context_provider_command_buffer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698