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

Unified Diff: services/ui/surfaces/surfaces_context_provider.h

Issue 2176303002: services/ui: Remove deprecated gpu code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot-merge Created 4 years, 5 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
Index: services/ui/surfaces/surfaces_context_provider.h
diff --git a/services/ui/surfaces/surfaces_context_provider.h b/services/ui/surfaces/surfaces_context_provider.h
index aaa5e287f7c659cc5486f79581589ccf82b97a13..207d3db32cbfe1168a547e85b783dce95b297662 100644
--- a/services/ui/surfaces/surfaces_context_provider.h
+++ b/services/ui/surfaces/surfaces_context_provider.h
@@ -12,7 +12,6 @@
#include "base/macros.h"
#include "base/threading/non_thread_safe.h"
#include "cc/output/context_provider.h"
-#include "services/ui/gles2/command_buffer_local_client.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gl/gl_surface.h"
@@ -37,16 +36,12 @@ namespace ui {
class CommandBufferDriver;
class CommandBufferImpl;
-class CommandBufferLocal;
-class GpuState;
class SurfacesContextProviderDelegate;
class SurfacesContextProvider : public cc::ContextProvider,
- public CommandBufferLocalClient,
public base::NonThreadSafe {
public:
- SurfacesContextProvider(gfx::AcceleratedWidget widget,
- const scoped_refptr<GpuState>& state);
+ explicit SurfacesContextProvider(gfx::AcceleratedWidget widget);
void SetDelegate(SurfacesContextProviderDelegate* delegate);
@@ -71,11 +66,6 @@ class SurfacesContextProvider : public cc::ContextProvider,
~SurfacesContextProvider() override;
private:
- // CommandBufferLocalClient:
- void UpdateVSyncParameters(const base::TimeTicks& timebase,
- const base::TimeDelta& interval) override;
- void GpuCompletedSwapBuffers(gfx::SwapResult result) override;
-
// Callbacks for CommandBufferProxyImpl:
void OnGpuSwapBuffersCompleted(
const std::vector<ui::LatencyInfo>& latency_info,
@@ -84,8 +74,6 @@ class SurfacesContextProvider : public cc::ContextProvider,
void OnUpdateVSyncParameters(base::TimeTicks timebase,
base::TimeDelta interval);
- bool use_chrome_gpu_command_buffer_;
-
// From GLES2Context:
// Initialized in BindToCurrentThread.
std::unique_ptr<gpu::gles2::GLES2CmdHelper> gles2_helper_;
@@ -97,7 +85,6 @@ class SurfacesContextProvider : public cc::ContextProvider,
SurfacesContextProviderDelegate* delegate_;
gfx::AcceleratedWidget widget_;
- CommandBufferLocal* command_buffer_local_;
std::unique_ptr<gpu::CommandBufferProxyImpl> command_buffer_proxy_impl_;
gl::GLSurface::SwapCompletionCallback swap_buffers_completion_callback_;
« no previous file with comments | « services/ui/surfaces/ozone_gpu_memory_buffer_manager.cc ('k') | services/ui/surfaces/surfaces_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698