summaryrefslogtreecommitdiffstats
path: root/cc/CCResourceProvider.h
diff options
context:
space:
mode:
authorccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-27 05:39:40 +0000
committerccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-27 05:39:40 +0000
commit79cda4bec24d368b8ae5fa6eaac4175a72f439c0 (patch)
treebeedf5cbd6ea957d90497216c4e4db2d5ecaff15 /cc/CCResourceProvider.h
parente275aa4ab41d51be8a7e209711bb04a1309e9897 (diff)
downloadchromium_src-79cda4bec24d368b8ae5fa6eaac4175a72f439c0.zip
chromium_src-79cda4bec24d368b8ae5fa6eaac4175a72f439c0.tar.gz
chromium_src-79cda4bec24d368b8ae5fa6eaac4175a72f439c0.tar.bz2
Add crash instrumentation to help diagnose issue 151428.
This data is preserved in minidumps. Once I have some samples, I will revert this checkin. BUG=151428 Review URL: https://chromiumcodereview.appspot.com/10993051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158980 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/CCResourceProvider.h')
-rw-r--r--cc/CCResourceProvider.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cc/CCResourceProvider.h b/cc/CCResourceProvider.h
index 9aa9c85..a81e496 100644
--- a/cc/CCResourceProvider.h
+++ b/cc/CCResourceProvider.h
@@ -146,6 +146,11 @@ public:
// Only for testing
size_t mailboxCount() const { return m_mailboxes.size(); }
+ // Temporary functions for debugging crashes in issue 151428 in canary
+ static void debugNotifyEviction();
+ static void debugNotifyContextLost();
+ static void debugIncrementCommitCount();
+
// The following lock classes are part of the CCResourceProvider API and are
// needed to read and write the resource contents. The user must ensure
// that they only use GL locks on GL resources, etc, and this is enforced
@@ -263,6 +268,10 @@ private:
OwnPtr<TextureUploader> m_textureUploader;
OwnPtr<AcceleratedTextureCopier> m_textureCopier;
int m_maxTextureSize;
+
+ static int m_commitsSinceLastEviction;
+ static int m_commitsSinceLastContextLost;
+
};
}