summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_renderer_client.h
diff options
context:
space:
mode:
authoralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-30 20:38:36 +0000
committeralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-30 20:38:36 +0000
commit2e0975dcc32fcac823d35e42514169e41a3a7fd3 (patch)
treeb010300f234789716d26be9fd6b2b0348d999e4a /cc/test/fake_renderer_client.h
parent6734e40aa3d7fc25ec790b9148ac61f8c4607a55 (diff)
downloadchromium_src-2e0975dcc32fcac823d35e42514169e41a3a7fd3.zip
chromium_src-2e0975dcc32fcac823d35e42514169e41a3a7fd3.tar.gz
chromium_src-2e0975dcc32fcac823d35e42514169e41a3a7fd3.tar.bz2
cc: Delete GrContext resources when tab becomes invisible.
BUG=366519 Review URL: https://codereview.chromium.org/255593002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267324 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_renderer_client.h')
-rw-r--r--cc/test/fake_renderer_client.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/cc/test/fake_renderer_client.h b/cc/test/fake_renderer_client.h
new file mode 100644
index 0000000..9854b01
--- /dev/null
+++ b/cc/test/fake_renderer_client.h
@@ -0,0 +1,30 @@
+// Copyright 2014 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 CC_TEST_FAKE_RENDERER_CLIENT_H_
+#define CC_TEST_FAKE_RENDERER_CLIENT_H_
+
+#include "cc/output/renderer.h"
+
+namespace cc {
+
+class FakeRendererClient : public RendererClient {
+ public:
+ FakeRendererClient();
+
+ // RendererClient methods.
+ virtual void SetFullRootLayerDamage() OVERRIDE;
+
+ // Methods added for test.
+ int set_full_root_layer_damage_count() const {
+ return set_full_root_layer_damage_count_;
+ }
+
+ private:
+ int set_full_root_layer_damage_count_;
+};
+
+} // namespace cc
+
+#endif // CC_TEST_FAKE_RENDERER_CLIENT_H_