summaryrefslogtreecommitdiffstats
path: root/webkit/common/gpu/context_provider_in_process.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/common/gpu/context_provider_in_process.h')
-rw-r--r--webkit/common/gpu/context_provider_in_process.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/webkit/common/gpu/context_provider_in_process.h b/webkit/common/gpu/context_provider_in_process.h
index 5285f7b..90c5e69 100644
--- a/webkit/common/gpu/context_provider_in_process.h
+++ b/webkit/common/gpu/context_provider_in_process.h
@@ -26,7 +26,8 @@ class WEBKIT_GPU_EXPORT ContextProviderInProcess
: NON_EXPORTED_BASE(public cc::ContextProvider) {
public:
static scoped_refptr<ContextProviderInProcess> Create(
- scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> context3d);
+ scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> context3d,
+ const std::string& debug_name);
// Calls Create() with a default factory method for creating an offscreen
// context.
@@ -49,7 +50,8 @@ class WEBKIT_GPU_EXPORT ContextProviderInProcess
protected:
ContextProviderInProcess(
- scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> context3d);
+ scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> context3d,
+ const std::string& debug_name);
virtual ~ContextProviderInProcess();
void OnLostContext();
@@ -72,6 +74,7 @@ class WEBKIT_GPU_EXPORT ContextProviderInProcess
base::Lock destroyed_lock_;
bool destroyed_;
+ std::string debug_name_;
class LostContextCallbackProxy;
scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_;