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

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

Issue 2586323002: mus: Use ui::ContextProviderCommandBuffer. (Closed)
Patch Set: . 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/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
deleted file mode 100644
index ba0c2c258030bc2e7ca278648e15ed05552f65c0..0000000000000000000000000000000000000000
--- a/services/ui/public/cpp/gles2_context.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SERVICES_UI_PUBLIC_CPP_GLES2_CONTEXT_H_
-#define SERVICES_UI_PUBLIC_CPP_GLES2_CONTEXT_H_
-
-#include <stdint.h>
-
-#include <memory>
-#include <vector>
-
-#include "base/macros.h"
-#include "base/single_thread_task_runner.h"
-#include "gpu/command_buffer/client/gles2_implementation.h"
-
-namespace gpu {
-
-class CommandBufferProxyImpl;
-class GpuChannelHost;
-class TransferBuffer;
-
-namespace gles2 {
-class GLES2CmdHelper;
-}
-
-} // namespace gpu
-
-namespace ui {
-
-class GLES2Context {
- public:
- ~GLES2Context();
- gpu::gles2::GLES2Interface* interface() const {
- return implementation_.get();
- }
- gpu::ContextSupport* context_support() const { return implementation_.get(); }
-
- static std::unique_ptr<GLES2Context> CreateOffscreenContext(
- scoped_refptr<gpu::GpuChannelHost> gpu_channel_host,
- scoped_refptr<base::SingleThreadTaskRunner> task_runner);
-
- private:
- GLES2Context();
- bool Initialize(scoped_refptr<gpu::GpuChannelHost> gpu_channel_host,
- scoped_refptr<base::SingleThreadTaskRunner> task_runner);
-
- std::unique_ptr<gpu::CommandBufferProxyImpl> command_buffer_proxy_impl_;
- std::unique_ptr<gpu::gles2::GLES2CmdHelper> gles2_helper_;
- std::unique_ptr<gpu::TransferBuffer> transfer_buffer_;
- std::unique_ptr<gpu::gles2::GLES2Implementation> implementation_;
-
- DISALLOW_COPY_AND_ASSIGN(GLES2Context);
-};
-
-} // namespace ui
-
-#endif // SERVICES_UI_PUBLIC_CPP_GLES2_CONTEXT_H_
« 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