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

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

Issue 221833009: cc: Move scheduling logic out of OutputSurface (Closed) Base URL: http://git.chromium.org/chromium/src.git@swapAck2Sched11
Patch Set: rebase; add comment about race Created 6 years, 8 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 unified diff | Download patch
« no previous file with comments | « cc/test/fake_output_surface.cc ('k') | cc/test/scheduler_test_common.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 FakeOutputSurfaceClient : public OutputSurfaceClient { 13 class FakeOutputSurfaceClient : public OutputSurfaceClient {
14 public: 14 public:
15 FakeOutputSurfaceClient() 15 FakeOutputSurfaceClient()
16 : begin_frame_count_(0), 16 : begin_frame_count_(0),
17 deferred_initialize_called_(false), 17 deferred_initialize_called_(false),
18 did_lose_output_surface_called_(false), 18 did_lose_output_surface_called_(false),
19 memory_policy_(0) {} 19 memory_policy_(0) {}
20 20
21 virtual void DeferredInitialize() OVERRIDE; 21 virtual void DeferredInitialize() OVERRIDE;
22 virtual void ReleaseGL() OVERRIDE {} 22 virtual void ReleaseGL() OVERRIDE {}
23 virtual void CommitVSyncParameters(base::TimeTicks timebase,
24 base::TimeDelta interval) OVERRIDE {}
23 virtual void SetNeedsRedrawRect(const gfx::Rect& damage_rect) OVERRIDE {} 25 virtual void SetNeedsRedrawRect(const gfx::Rect& damage_rect) OVERRIDE {}
24 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE; 26 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE;
25 virtual void DidSwapBuffers() OVERRIDE {} 27 virtual void DidSwapBuffers() OVERRIDE {}
26 virtual void DidSwapBuffersComplete() OVERRIDE {} 28 virtual void DidSwapBuffersComplete() OVERRIDE {}
27 virtual void ReclaimResources(const CompositorFrameAck* ack) OVERRIDE {} 29 virtual void ReclaimResources(const CompositorFrameAck* ack) OVERRIDE {}
28 virtual void DidLoseOutputSurface() OVERRIDE; 30 virtual void DidLoseOutputSurface() OVERRIDE;
29 virtual void SetExternalDrawConstraints( 31 virtual void SetExternalDrawConstraints(
30 const gfx::Transform& transform, 32 const gfx::Transform& transform,
31 const gfx::Rect& viewport, 33 const gfx::Rect& viewport,
32 const gfx::Rect& clip, 34 const gfx::Rect& clip,
(...skipping 16 matching lines...) Expand all
49 private: 51 private:
50 int begin_frame_count_; 52 int begin_frame_count_;
51 bool deferred_initialize_called_; 53 bool deferred_initialize_called_;
52 bool did_lose_output_surface_called_; 54 bool did_lose_output_surface_called_;
53 ManagedMemoryPolicy memory_policy_; 55 ManagedMemoryPolicy memory_policy_;
54 }; 56 };
55 57
56 } // namespace cc 58 } // namespace cc
57 59
58 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_ 60 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/test/fake_output_surface.cc ('k') | cc/test/scheduler_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698