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

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

Issue 1095893002: gpu: Fix some context lost marking glitches+leaks and add UMA stats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: kbr's comment Created 5 years, 8 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_command_buffer.h
diff --git a/content/common/gpu/client/context_provider_command_buffer.h b/content/common/gpu/client/context_provider_command_buffer.h
index 101c0a0f670a69cf186a6166bdc85678db604618..ee10bf1fb509776cfbc77db005eb154c89f6e601 100644
--- a/content/common/gpu/client/context_provider_command_buffer.h
+++ b/content/common/gpu/client/context_provider_command_buffer.h
@@ -12,6 +12,7 @@
#include "cc/blink/context_provider_web_context.h"
#include "cc/output/context_provider.h"
#include "content/common/content_export.h"
+#include "content/common/gpu/client/command_buffer_metrics.h"
#include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
namespace webkit {
@@ -29,7 +30,7 @@ class CONTENT_EXPORT ContextProviderCommandBuffer
public:
static scoped_refptr<ContextProviderCommandBuffer> Create(
scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context3d,
- const std::string& debug_name);
+ CommandBufferContextType type);
CommandBufferProxyImpl* GetCommandBufferProxy();
@@ -58,7 +59,7 @@ class CONTENT_EXPORT ContextProviderCommandBuffer
protected:
ContextProviderCommandBuffer(
scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context3d,
- const std::string& debug_name);
+ CommandBufferContextType type);
~ContextProviderCommandBuffer() override;
void OnLostContext();
@@ -74,6 +75,7 @@ class CONTENT_EXPORT ContextProviderCommandBuffer
scoped_ptr<webkit::gpu::GrContextForWebGraphicsContext3D> gr_context_;
cc::ContextProvider::Capabilities capabilities_;
+ CommandBufferContextType context_type_;
std::string debug_name_;
LostContextCallback lost_context_callback_;
« no previous file with comments | « content/common/gpu/client/command_buffer_proxy_impl.cc ('k') | content/common/gpu/client/context_provider_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698