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

Unified Diff: content/renderer/pepper_parent_context_provider.h

Issue 8342024: Fixed bugs with Pepper 3D under dynamic GPU switching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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/renderer/pepper_parent_context_provider.h
===================================================================
--- content/renderer/pepper_parent_context_provider.h (revision 0)
+++ content/renderer/pepper_parent_context_provider.h (revision 0)
@@ -0,0 +1,27 @@
+// Copyright (c) 2011 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_PEPPER_PARENT_CONTEXT_PROVIDER_H_
+#define CONTENT_RENDERER_PEPPER_PARENT_CONTEXT_PROVIDER_H_
+#pragma once
+
+#include "base/basictypes.h"
+
+class RendererGLContext;
+
+// Defines the mechanism by which a Pepper 3D context fetches its
+// parent context for display to the screen.
+class PepperParentContextProvider {
+ public:
+ virtual ~PepperParentContextProvider();
+ virtual RendererGLContext* GetParentContextForPlatformContext3D() = 0;
+
+ protected:
+ PepperParentContextProvider();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(PepperParentContextProvider);
+};
+
+#endif // CONTENT_RENDERER_PEPPER_PARENT_CONTEXT_PROVIDER_H_
Property changes on: content/renderer/pepper_parent_context_provider.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc ('k') | content/renderer/pepper_parent_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698