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

Unified Diff: ui/compositor/context_provider_from_context_factory.h

Issue 21026005: aura: Remove CreateOffscreenContext from ui::ContextFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: offscreencontext: clang-format Created 7 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 | « ui/compositor/compositor.gyp ('k') | ui/compositor/context_provider_from_context_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/context_provider_from_context_factory.h
diff --git a/ui/compositor/context_provider_from_context_factory.h b/ui/compositor/context_provider_from_context_factory.h
deleted file mode 100644
index 57be7f47efd50838edf8daf41f99775d5ae9cd9c..0000000000000000000000000000000000000000
--- a/ui/compositor/context_provider_from_context_factory.h
+++ /dev/null
@@ -1,45 +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 UI_COMPOSITOR_CONTEXT_PROVIDER_FROM_CONTEXT_FACTORY_H_
-#define UI_COMPOSITOR_CONTEXT_PROVIDER_FROM_CONTEXT_FACTORY_H_
-
-#include "base/synchronization/lock.h"
-#include "cc/output/context_provider.h"
-#include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
-#include "ui/compositor/compositor.h"
-#include "webkit/common/gpu/grcontext_for_webgraphicscontext3d.h"
-
-namespace ui {
-
-class ContextProviderFromContextFactory
- : public cc::ContextProvider {
- public:
- static scoped_refptr<ContextProviderFromContextFactory> CreateForOffscreen(
- ContextFactory* factory);
-
- virtual bool BindToCurrentThread() OVERRIDE;
- virtual WebKit::WebGraphicsContext3D* Context3d() OVERRIDE;
- virtual class GrContext* GrContext() OVERRIDE;
- virtual void VerifyContexts() OVERRIDE;
- virtual bool DestroyedOnMainThread() OVERRIDE;
- virtual void SetLostContextCallback(const LostContextCallback& cb) OVERRIDE;
-
- protected:
- ContextProviderFromContextFactory(ContextFactory* factory);
- virtual ~ContextProviderFromContextFactory();
-
- bool InitializeOnMainThread();
-
- private:
- ContextFactory* factory_;
- base::Lock destroyed_lock_;
- bool destroyed_;
- scoped_ptr<WebKit::WebGraphicsContext3D> context3d_;
- scoped_ptr<webkit::gpu::GrContextForWebGraphicsContext3D> gr_context_;
-};
-
-} // namespace ui
-
-#endif // UI_COMPOSITOR_CONTEXT_PROVIDER_FROM_CONTEXT_FACTORY_H_
« no previous file with comments | « ui/compositor/compositor.gyp ('k') | ui/compositor/context_provider_from_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698