Index: blimp/client/support/compositor/blimp_context_provider.h |
diff --git a/blimp/client/support/compositor/blimp_context_provider.h b/blimp/client/support/compositor/blimp_context_provider.h |
deleted file mode 100644 |
index 98fc1fd21cfb61ddeadddb22296f670fa50c5f24..0000000000000000000000000000000000000000 |
--- a/blimp/client/support/compositor/blimp_context_provider.h |
+++ /dev/null |
@@ -1,72 +0,0 @@ |
-// Copyright 2015 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 BLIMP_CLIENT_SUPPORT_COMPOSITOR_BLIMP_CONTEXT_PROVIDER_H_ |
-#define BLIMP_CLIENT_SUPPORT_COMPOSITOR_BLIMP_CONTEXT_PROVIDER_H_ |
- |
-#include <stdint.h> |
- |
-#include <memory> |
- |
-#include "base/macros.h" |
-#include "base/synchronization/lock.h" |
-#include "base/threading/thread_checker.h" |
-#include "cc/output/context_provider.h" |
-#include "gpu/ipc/common/surface_handle.h" |
-#include "gpu/ipc/gl_in_process_context.h" |
-#include "ui/gl/gl_surface.h" |
- |
-namespace skia_bindings { |
-class GrContextForGLES2Interface; |
-} // namespace skia_bindings |
- |
-namespace blimp { |
-namespace client { |
- |
-// Helper class to provide a graphics context for the compositor. |
-class BlimpContextProvider : public cc::ContextProvider { |
- public: |
- static scoped_refptr<BlimpContextProvider> Create( |
- gpu::SurfaceHandle widget, |
- gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager); |
- |
- // cc::ContextProvider implementation. |
- bool BindToCurrentThread() override; |
- void DetachFromThread() override; |
- gpu::Capabilities ContextCapabilities() override; |
- gpu::gles2::GLES2Interface* ContextGL() override; |
- gpu::ContextSupport* ContextSupport() override; |
- class GrContext* GrContext() override; |
- cc::ContextCacheController* CacheController() override; |
- void InvalidateGrContext(uint32_t state) override; |
- base::Lock* GetLock() override; |
- void SetLostContextCallback( |
- const LostContextCallback& lost_context_callback) override; |
- |
- protected: |
- BlimpContextProvider(gpu::SurfaceHandle widget, |
- gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager); |
- ~BlimpContextProvider() override; |
- |
- private: |
- void OnLostContext(); |
- |
- base::ThreadChecker main_thread_checker_; |
- base::ThreadChecker context_thread_checker_; |
- |
- std::unique_ptr<gpu::GLInProcessContext> context_; |
- std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_; |
- std::unique_ptr<cc::ContextCacheController> cache_controller_; |
- |
- LostContextCallback lost_context_callback_; |
- |
- base::Lock context_lock_; |
- |
- DISALLOW_COPY_AND_ASSIGN(BlimpContextProvider); |
-}; |
- |
-} // namespace client |
-} // namespace blimp |
- |
-#endif // BLIMP_CLIENT_SUPPORT_COMPOSITOR_BLIMP_CONTEXT_PROVIDER_H_ |