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

Unified Diff: content/common/gpu/client/context_provider_web_context.h

Issue 126093010: Use ContextProvider subclass to provide WGC3D pointers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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: content/common/gpu/client/context_provider_web_context.h
diff --git a/content/common/gpu/client/context_provider_web_context.h b/content/common/gpu/client/context_provider_web_context.h
new file mode 100644
index 0000000000000000000000000000000000000000..ee1ddf31db194dfa7bb7ba2e88c3a9f1c4281b27
--- /dev/null
+++ b/content/common/gpu/client/context_provider_web_context.h
@@ -0,0 +1,25 @@
+// 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 CONTENT_RENDERER_CONTEXT_PROVIDER_WEB_CONTEXT_H_
+#define CONTENT_RENDERER_CONTEXT_PROVIDER_WEB_CONTEXT_H_
+
+#include "cc/output/context_provider.h"
+
+namespace blink { class WebGraphicsContext3D; }
+
+namespace content {
+
+class ContextProviderWebContext : public cc::ContextProvider {
+ public:
+ virtual blink::WebGraphicsContext3D* WebContext3D() = 0;
+
+ protected:
+ friend class RefCountedThreadSafe<ContextProviderWebContext>;
piman 2014/01/08 01:22:50 nit: why do you need this?
jamesr 2014/01/08 02:20:15 hmm, thought that i did since the d'tor is protect
piman 2014/01/08 02:26:41 One thing that gives it away is that the RefCounte
+ virtual ~ContextProviderWebContext() {}
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_CONTEXT_PROVIDER_WEB_CONTEXT_H_

Powered by Google App Engine
This is Rietveld 408576698