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

Side by Side Diff: cc/surfaces/display_scheduler.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 unified diff | Download patch
« no previous file with comments | « cc/surfaces/display.cc ('k') | cc/surfaces/display_scheduler.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_DISPLAY_SCHEDULER_H_ 5 #ifndef CC_SURFACES_DISPLAY_SCHEDULER_H_
6 #define CC_SURFACES_DISPLAY_SCHEDULER_H_ 6 #define CC_SURFACES_DISPLAY_SCHEDULER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/cancelable_callback.h" 10 #include "base/cancelable_callback.h"
(...skipping 27 matching lines...) Expand all
38 void SetClient(DisplaySchedulerClient* client); 38 void SetClient(DisplaySchedulerClient* client);
39 39
40 void SetVisible(bool visible); 40 void SetVisible(bool visible);
41 void SetRootSurfaceResourcesLocked(bool locked); 41 void SetRootSurfaceResourcesLocked(bool locked);
42 void ForceImmediateSwapIfPossible(); 42 void ForceImmediateSwapIfPossible();
43 virtual void DisplayResized(); 43 virtual void DisplayResized();
44 virtual void SetNewRootSurface(const SurfaceId& root_surface_id); 44 virtual void SetNewRootSurface(const SurfaceId& root_surface_id);
45 virtual void SurfaceDamaged(const SurfaceId& surface_id); 45 virtual void SurfaceDamaged(const SurfaceId& surface_id);
46 46
47 virtual void DidSwapBuffers(); 47 virtual void DidSwapBuffers();
48 void DidSwapBuffersComplete(); 48 void DidReceiveSwapBuffersAck();
49 49
50 void OutputSurfaceLost(); 50 void OutputSurfaceLost();
51 51
52 // BeginFrameObserverBase implementation 52 // BeginFrameObserverBase implementation
53 bool OnBeginFrameDerivedImpl(const BeginFrameArgs& args) override; 53 bool OnBeginFrameDerivedImpl(const BeginFrameArgs& args) override;
54 void OnBeginFrameSourcePausedChanged(bool paused) override; 54 void OnBeginFrameSourcePausedChanged(bool paused) override;
55 55
56 protected: 56 protected:
57 base::TimeTicks DesiredBeginFrameDeadlineTime(); 57 base::TimeTicks DesiredBeginFrameDeadlineTime();
58 virtual void ScheduleBeginFrameDeadline(); 58 virtual void ScheduleBeginFrameDeadline();
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 base::WeakPtrFactory<DisplayScheduler> weak_ptr_factory_; 100 base::WeakPtrFactory<DisplayScheduler> weak_ptr_factory_;
101 101
102 private: 102 private:
103 DISALLOW_COPY_AND_ASSIGN(DisplayScheduler); 103 DISALLOW_COPY_AND_ASSIGN(DisplayScheduler);
104 }; 104 };
105 105
106 } // namespace cc 106 } // namespace cc
107 107
108 #endif // CC_SURFACES_DISPLAY_SCHEDULER_H_ 108 #endif // CC_SURFACES_DISPLAY_SCHEDULER_H_
OLDNEW
« no previous file with comments | « cc/surfaces/display.cc ('k') | cc/surfaces/display_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698