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

Unified Diff: content/public/browser/gpu_data_manager_observer.h

Issue 12319119: Fix layering violation in content\browser\renderer_host. That directory shouldn't be including web_… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « content/public/browser/gpu_data_manager.h ('k') | content/public/browser/web_contents_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/gpu_data_manager_observer.h
===================================================================
--- content/public/browser/gpu_data_manager_observer.h (revision 184684)
+++ content/public/browser/gpu_data_manager_observer.h (working copy)
@@ -7,7 +7,10 @@
#include "content/common/content_export.h"
#include "content/public/common/gpu_memory_stats.h"
+#include "content/public/common/three_d_api_types.h"
+class GURL;
+
namespace content {
// Observers can register themselves via GpuDataManager::AddObserver, and
@@ -15,12 +18,19 @@
class GpuDataManagerObserver {
public:
// Called for any observers whenever there is a GPU info update.
- virtual void OnGpuInfoUpdate() = 0;
+ virtual void OnGpuInfoUpdate() {}
// Called for any observers whenever there is a GPU video memory update.
virtual void OnVideoMemoryUsageStatsUpdate(
- const GPUVideoMemoryUsageStats& video_memory_usage_stats) = 0;
+ const GPUVideoMemoryUsageStats& video_memory_usage_stats) {}
+ // Indicates that client 3D APIs (Pepper 3D, WebGL) were just blocked on the
+ // given page, specifically because the GPU was reset recently.
+ virtual void DidBlock3DAPIs(const GURL& url,
+ int render_process_id,
+ int render_view_id,
+ ThreeDAPIType requester) {}
+
protected:
virtual ~GpuDataManagerObserver() {}
};
« no previous file with comments | « content/public/browser/gpu_data_manager.h ('k') | content/public/browser/web_contents_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698