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

Unified Diff: services/ui/public/cpp/gles2_context.h

Issue 2257693002: services/ui: Use a gpu::GpuChannelHost when creating ui::OutputSurface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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 | « services/ui/public/cpp/context_provider.cc ('k') | services/ui/public/cpp/gles2_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/gles2_context.h
diff --git a/services/ui/public/cpp/gles2_context.h b/services/ui/public/cpp/gles2_context.h
index c32e392c2b4027810a177a4691fcc7f36737294a..5ff9da0c19ce14a9b3b07aa6491ca70866a1939f 100644
--- a/services/ui/public/cpp/gles2_context.h
+++ b/services/ui/public/cpp/gles2_context.h
@@ -14,16 +14,18 @@
#include "gpu/command_buffer/client/gles2_implementation.h"
namespace gpu {
+
class CommandBufferProxyImpl;
+class GpuChannelHost;
class TransferBuffer;
+
namespace gles2 {
class GLES2CmdHelper;
}
-}
-namespace ui {
+} // namespace gpu
-class GpuService;
+namespace ui {
class GLES2Context {
public:
@@ -34,11 +36,11 @@ class GLES2Context {
gpu::ContextSupport* context_support() const { return implementation_.get(); }
static std::unique_ptr<GLES2Context> CreateOffscreenContext(
- GpuService* gpu_service);
+ scoped_refptr<gpu::GpuChannelHost> gpu_channel_host);
private:
GLES2Context();
- bool Initialize(GpuService* gpu_service);
+ bool Initialize(scoped_refptr<gpu::GpuChannelHost> gpu_channel_host);
std::unique_ptr<gpu::CommandBufferProxyImpl> command_buffer_proxy_impl_;
std::unique_ptr<gpu::gles2::GLES2CmdHelper> gles2_helper_;
« no previous file with comments | « services/ui/public/cpp/context_provider.cc ('k') | services/ui/public/cpp/gles2_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698