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

Unified Diff: webkit/gpu/context_provider_in_process.h

Issue 16046003: Move webkit/gpu into webkit/common/gpu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes in content/common/gpu/client/gl_helper_* Created 7 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
« no previous file with comments | « webkit/gpu/OWNERS ('k') | webkit/gpu/context_provider_in_process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/gpu/context_provider_in_process.h
diff --git a/webkit/gpu/context_provider_in_process.h b/webkit/gpu/context_provider_in_process.h
deleted file mode 100644
index fd9c5f0f87cefc62a5922b721984cd4863810a81..0000000000000000000000000000000000000000
--- a/webkit/gpu/context_provider_in_process.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright (c) 2013 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 WEBKIT_GPU_CONTEXT_PROVIDER_IN_PROCESS_H_
-#define WEBKIT_GPU_CONTEXT_PROVIDER_IN_PROCESS_H_
-
-#include "base/compiler_specific.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/synchronization/lock.h"
-#include "cc/output/context_provider.h"
-#include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h"
-#include "webkit/gpu/webkit_gpu_export.h"
-
-namespace webkit {
-namespace gpu {
-class GrContextForWebGraphicsContext3D;
-
-class WEBKIT_GPU_EXPORT ContextProviderInProcess
- : NON_EXPORTED_BASE(public cc::ContextProvider) {
- public:
- static scoped_refptr<ContextProviderInProcess> Create() {
- scoped_refptr<ContextProviderInProcess> provider =
- new ContextProviderInProcess;
- if (!provider->InitializeOnMainThread())
- return NULL;
- return provider;
- }
-
- virtual bool BindToCurrentThread() OVERRIDE;
- virtual WebKit::WebGraphicsContext3D* Context3d() OVERRIDE;
- virtual class GrContext* GrContext() OVERRIDE;
- virtual void VerifyContexts() OVERRIDE;
- virtual bool DestroyedOnMainThread() OVERRIDE;
-
- protected:
- ContextProviderInProcess();
- virtual ~ContextProviderInProcess();
-
- bool InitializeOnMainThread();
-
- void OnLostContextInternal();
- virtual void OnLostContext() {}
- virtual void OnMemoryAllocationChanged(bool nonzero_allocation);
-
- private:
- scoped_ptr<webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl>
- context3d_;
- scoped_ptr<webkit::gpu::GrContextForWebGraphicsContext3D> gr_context_;
-
- base::Lock destroyed_lock_;
- bool destroyed_;
-
- class LostContextCallbackProxy;
- scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_;
-
- class MemoryAllocationCallbackProxy;
- scoped_ptr<MemoryAllocationCallbackProxy> memory_allocation_callback_proxy_;
-};
-
-} // namespace gpu
-} // namespace webkit
-
-#endif // WEBKIT_GPU_CONTEXT_PROVIDER_IN_PROCESS_H_
« no previous file with comments | « webkit/gpu/OWNERS ('k') | webkit/gpu/context_provider_in_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698