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

Unified Diff: cc/context_provider.h

Issue 12912006: Part 4 of cc/ directory shuffles: output (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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: cc/context_provider.h
diff --git a/cc/context_provider.h b/cc/context_provider.h
deleted file mode 100644
index e8e3f18d60e935ceacbc211d1cfea3f28ca3cf25..0000000000000000000000000000000000000000
--- a/cc/context_provider.h
+++ /dev/null
@@ -1,42 +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 CC_CONTEXT_PROVIDER_H_
-#define CC_CONTEXT_PROVIDER_H_
-
-#include "base/memory/ref_counted.h"
-
-class GrContext;
-namespace WebKit { class WebGraphicsContext3D; }
-
-namespace cc {
-
-class ContextProvider : public base::RefCountedThreadSafe<ContextProvider> {
- public:
- // Bind the 3d context to the current thread. This should be called before
- // accessing the contexts. Calling it more than once should have no effect.
- // Once this function has been called, the class should only be accessed
- // from the same thread.
- virtual bool BindToCurrentThread() = 0;
-
- virtual WebKit::WebGraphicsContext3D* Context3d() = 0;
- virtual class GrContext* GrContext() = 0;
-
- // Ask the provider to check if the contexts are valid or lost. If they are,
- // this should invalidate the provider so that it can be replaced with a new
- // one.
- virtual void VerifyContexts() = 0;
-
- // A method to be called from the main thread that should return true if
- // the context inside the provider is no longer valid.
- virtual bool DestroyedOnMainThread() = 0;
-
- protected:
- friend class base::RefCountedThreadSafe<ContextProvider>;
- virtual ~ContextProvider() {}
-};
-
-} // namespace cc
-
-#endif // CC_CONTEXT_PROVIDER_H_

Powered by Google App Engine
This is Rietveld 408576698