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

Unified Diff: cc/test/fake_output_surface_client.h

Issue 2403373002: cc: Clean up OutputSurfaceClient. (Closed)
Patch Set: osclient: rebase Created 4 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/test/fake_output_surface.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 0bc6e38c4f697b8e44f5a7c39b5c5802d201d52d..682a9b0855bfa9db24b61df1d3a4376d755eed41 100644
--- a/cc/test/fake_output_surface_client.h
+++ b/cc/test/fake_output_surface_client.h
@@ -5,7 +5,6 @@
#ifndef CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_
#define CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_
-#include "cc/output/managed_memory_policy.h"
#include "cc/output/output_surface_client.h"
namespace cc {
@@ -14,26 +13,13 @@ class OutputSurface;
class FakeOutputSurfaceClient : public OutputSurfaceClient {
public:
- FakeOutputSurfaceClient()
- : swap_count_(0),
- did_lose_output_surface_called_(false),
- memory_policy_(0) {}
+ FakeOutputSurfaceClient() = default;
- void SetBeginFrameSource(BeginFrameSource* source) override {}
void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override {}
- void DidSwapBuffersComplete() override;
+ void DidReceiveSwapBuffersAck() override;
void DidReceiveTextureInUseResponses(
const gpu::TextureInUseResponses& responses) override {}
- void ReclaimResources(const ReturnedResourceArray& resources) override {}
void DidLoseOutputSurface() override;
- void SetExternalTilePriorityConstraints(
- const gfx::Rect& viewport_rect_for_tile_priority,
- const gfx::Transform& transform_for_tile_priority) override {}
- void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override;
- void SetTreeActivationCallback(const base::Closure&) override {}
- void OnDraw(const gfx::Transform& transform,
- const gfx::Rect& viewport,
- bool resourceless_software_draw) override {}
int swap_count() { return swap_count_; }
@@ -41,12 +27,9 @@ class FakeOutputSurfaceClient : public OutputSurfaceClient {
return did_lose_output_surface_called_;
}
- const ManagedMemoryPolicy& memory_policy() const { return memory_policy_; }
-
private:
- int swap_count_;
- bool did_lose_output_surface_called_;
- ManagedMemoryPolicy memory_policy_;
+ int swap_count_ = 0;
+ bool did_lose_output_surface_called_ = false;
};
} // namespace cc
« no previous file with comments | « cc/test/fake_output_surface.cc ('k') | cc/test/fake_output_surface_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698