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

Side by Side Diff: cc/test/fake_output_surface_client.h

Issue 1499793003: Fix classes that have too many virtuals for inline constructors. Base URL: https://chromium.googlesource.com/chromium/src.git@enable-virtuals-as-complexity
Patch Set: Finish fixing the codebase that's accessible from Linux. Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_ 5 #ifndef CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_
6 #define CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_ 6 #define CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_
7 7
8 #include "cc/output/managed_memory_policy.h" 8 #include "cc/output/managed_memory_policy.h"
9 #include "cc/output/output_surface_client.h" 9 #include "cc/output/output_surface_client.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 class OutputSurface; 13 class OutputSurface;
14 14
15 class FakeOutputSurfaceClient : public OutputSurfaceClient { 15 class FakeOutputSurfaceClient : public OutputSurfaceClient {
16 public: 16 public:
17 FakeOutputSurfaceClient() 17 FakeOutputSurfaceClient();
18 : swap_count_(0),
19 did_lose_output_surface_called_(false),
20 memory_policy_(0) {}
21 18
22 void CommitVSyncParameters(base::TimeTicks timebase, 19 void CommitVSyncParameters(base::TimeTicks timebase,
23 base::TimeDelta interval) override {} 20 base::TimeDelta interval) override {}
24 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override {} 21 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override {}
25 void DidSwapBuffers() override; 22 void DidSwapBuffers() override;
26 void DidSwapBuffersComplete() override {} 23 void DidSwapBuffersComplete() override {}
27 void ReclaimResources(const CompositorFrameAck* ack) override {} 24 void ReclaimResources(const CompositorFrameAck* ack) override {}
28 void DidLoseOutputSurface() override; 25 void DidLoseOutputSurface() override;
29 void SetExternalDrawConstraints( 26 void SetExternalDrawConstraints(
30 const gfx::Transform& transform, 27 const gfx::Transform& transform,
(...skipping 16 matching lines...) Expand all
47 44
48 private: 45 private:
49 int swap_count_; 46 int swap_count_;
50 bool did_lose_output_surface_called_; 47 bool did_lose_output_surface_called_;
51 ManagedMemoryPolicy memory_policy_; 48 ManagedMemoryPolicy memory_policy_;
52 }; 49 };
53 50
54 } // namespace cc 51 } // namespace cc
55 52
56 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_ 53 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698