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

Unified Diff: components/surfaces/surfaces_context_provider.h

Issue 1150093003: Move GLES2, GPU & Surfaces into the ViewManager directory. This does not merge the applications, th… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 7 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: components/surfaces/surfaces_context_provider.h
diff --git a/components/surfaces/surfaces_context_provider.h b/components/surfaces/surfaces_context_provider.h
deleted file mode 100644
index fd5efef32f741c7cc30df5c03f571b04411b11ce..0000000000000000000000000000000000000000
--- a/components/surfaces/surfaces_context_provider.h
+++ /dev/null
@@ -1,63 +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 COMPONENTS_SURFACES_SURFACES_CONTEXT_PROVIDER_H_
-#define COMPONENTS_SURFACES_SURFACES_CONTEXT_PROVIDER_H_
-
-#include "base/macros.h"
-#include "base/synchronization/lock.h"
-#include "cc/output/context_provider.h"
-#include "third_party/mojo/src/mojo/public/c/gles2/gles2.h"
-#include "third_party/mojo/src/mojo/public/cpp/system/core.h"
-
-namespace surfaces {
-
-class SurfacesContextProvider : public cc::ContextProvider {
- public:
- explicit SurfacesContextProvider(
- mojo::ScopedMessagePipeHandle command_buffer_handle);
-
- // cc::ContextProvider implementation.
- bool BindToCurrentThread() override;
- gpu::gles2::GLES2Interface* ContextGL() override;
- gpu::ContextSupport* ContextSupport() override;
- class GrContext* GrContext() override;
- void InvalidateGrContext(uint32_t state) override;
- Capabilities ContextCapabilities() override;
- bool IsContextLost() override;
- void VerifyContexts() override {}
- void DeleteCachedResources() override {}
- bool DestroyedOnMainThread() override;
- void SetLostContextCallback(
- const LostContextCallback& lost_context_callback) override;
- void SetMemoryPolicyChangedCallback(
- const MemoryPolicyChangedCallback& memory_policy_changed_callback)
- override {}
- void SetupLock() override;
- base::Lock* GetLock() override;
-
- protected:
- friend class base::RefCountedThreadSafe<SurfacesContextProvider>;
- ~SurfacesContextProvider() override;
-
- private:
- static void ContextLostThunk(void* closure) {
- static_cast<SurfacesContextProvider*>(closure)->ContextLost();
- }
- void ContextLost();
-
- cc::ContextProvider::Capabilities capabilities_;
- mojo::ScopedMessagePipeHandle command_buffer_handle_;
- MojoGLES2Context context_;
- bool context_lost_;
- LostContextCallback lost_context_callback_;
-
- base::Lock context_lock_;
-
- DISALLOW_COPY_AND_ASSIGN(SurfacesContextProvider);
-};
-
-} // namespace surfaces
-
-#endif // COMPONENTS_SURFACES_SURFACES_CONTEXT_PROVIDER_H_
« no previous file with comments | « components/surfaces/public/interfaces/surfaces.mojom ('k') | components/surfaces/surfaces_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698