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

Side by Side Diff: cc/surfaces/onscreen_display_client.h

Issue 1124273004: Add SurfaceDisplayOutputSurface unittests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@displayScheduler16
Patch Set: DoesIndrectly -> DoesNotIndirectly Created 5 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SURFACES_ONSCREEN_DISPLAY_CLIENT_H_ 5 #ifndef CC_SURFACES_ONSCREEN_DISPLAY_CLIENT_H_
6 #define CC_SURFACES_ONSCREEN_DISPLAY_CLIENT_H_ 6 #define CC_SURFACES_ONSCREEN_DISPLAY_CLIENT_H_
7 7
8 #include "cc/surfaces/display_client.h" 8 #include "cc/surfaces/display_client.h"
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 } 42 }
43 43
44 // DisplayClient implementation. 44 // DisplayClient implementation.
45 void CommitVSyncParameters(base::TimeTicks timebase, 45 void CommitVSyncParameters(base::TimeTicks timebase,
46 base::TimeDelta interval) override; 46 base::TimeDelta interval) override;
47 void OutputSurfaceLost() override; 47 void OutputSurfaceLost() override;
48 void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override; 48 void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override;
49 49
50 bool output_surface_lost() { return output_surface_lost_; } 50 bool output_surface_lost() { return output_surface_lost_; }
51 51
52 private: 52 protected:
53 scoped_ptr<OutputSurface> output_surface_; 53 scoped_ptr<OutputSurface> output_surface_;
54 scoped_ptr<Display> display_; 54 scoped_ptr<Display> display_;
55 scoped_ptr<SyntheticBeginFrameSource> synthetic_begin_frame_source_; 55 scoped_ptr<SyntheticBeginFrameSource> synthetic_begin_frame_source_;
56 scoped_ptr<DisplayScheduler> scheduler_; 56 scoped_ptr<DisplayScheduler> scheduler_;
57 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 57 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
58 SurfaceDisplayOutputSurface* surface_display_output_surface_; 58 SurfaceDisplayOutputSurface* surface_display_output_surface_;
59 bool output_surface_lost_; 59 bool output_surface_lost_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(OnscreenDisplayClient); 61 DISALLOW_COPY_AND_ASSIGN(OnscreenDisplayClient);
62 }; 62 };
63 63
64 } // namespace cc 64 } // namespace cc
65 65
66 #endif // CC_SURFACES_ONSCREEN_DISPLAY_CLIENT_H_ 66 #endif // CC_SURFACES_ONSCREEN_DISPLAY_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698