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

Unified Diff: cc/test/fake_output_surface_client.h

Issue 53633003: Do not give GPU memory to backgrounded compositors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove test Created 7 years, 2 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 | « cc/output/software_renderer.cc ('k') | cc/test/fake_output_surface_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_output_surface_client.h
diff --git a/cc/test/fake_output_surface_client.h b/cc/test/fake_output_surface_client.h
index bf127d1d4fd043d0185b0111583ffe15c272e271..bc596a118eafd2e37fe992e16d612fd896a61968 100644
--- a/cc/test/fake_output_surface_client.h
+++ b/cc/test/fake_output_surface_client.h
@@ -17,8 +17,7 @@ class FakeOutputSurfaceClient : public OutputSurfaceClient {
deferred_initialize_result_(true),
deferred_initialize_called_(false),
did_lose_output_surface_called_(false),
- memory_policy_(0),
- discard_backbuffer_when_not_visible_(false) {}
+ memory_policy_(0) {}
virtual bool DeferredInitialize(
scoped_refptr<ContextProvider> offscreen_context_provider) OVERRIDE;
@@ -34,7 +33,6 @@ class FakeOutputSurfaceClient : public OutputSurfaceClient {
gfx::Rect clip,
bool valid_for_tile_management) OVERRIDE {}
virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE;
- virtual void SetDiscardBackBufferWhenNotVisible(bool discard) OVERRIDE;
virtual void SetTreeActivationCallback(const base::Closure&) OVERRIDE {}
int begin_impl_frame_count() {
@@ -55,17 +53,12 @@ class FakeOutputSurfaceClient : public OutputSurfaceClient {
const ManagedMemoryPolicy& memory_policy() const { return memory_policy_; }
- bool discard_backbuffer_when_not_visible() const {
- return discard_backbuffer_when_not_visible_;
- }
-
private:
int begin_impl_frame_count_;
bool deferred_initialize_result_;
bool deferred_initialize_called_;
bool did_lose_output_surface_called_;
ManagedMemoryPolicy memory_policy_;
- bool discard_backbuffer_when_not_visible_;
};
} // namespace cc
« no previous file with comments | « cc/output/software_renderer.cc ('k') | cc/test/fake_output_surface_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698