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

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

Issue 2822143003: Remove ForceReclaimResources (Closed)
Patch Set: Rebase. Created 3 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
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_SURFACE_H_ 5 #ifndef CC_SURFACES_SURFACE_H_
6 #define CC_SURFACES_SURFACE_H_ 6 #define CC_SURFACES_SURFACE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 ~Surface(); 46 ~Surface();
47 47
48 const SurfaceId& surface_id() const { return surface_id_; } 48 const SurfaceId& surface_id() const { return surface_id_; }
49 const SurfaceId& previous_frame_surface_id() const { 49 const SurfaceId& previous_frame_surface_id() const {
50 return previous_frame_surface_id_; 50 return previous_frame_surface_id_;
51 } 51 }
52 52
53 void SetPreviousFrameSurface(Surface* surface); 53 void SetPreviousFrameSurface(Surface* surface);
54 54
55 void QueueFrame(CompositorFrame frame, const DrawCallback& draw_callback); 55 void QueueFrame(CompositorFrame frame, const DrawCallback& draw_callback);
56 void EvictFrame();
57 void RequestCopyOfOutput(std::unique_ptr<CopyOutputRequest> copy_request); 56 void RequestCopyOfOutput(std::unique_ptr<CopyOutputRequest> copy_request);
58 57
59 // Notifies the Surface that a blocking SurfaceId now has an active frame. 58 // Notifies the Surface that a blocking SurfaceId now has an active frame.
60 void NotifySurfaceIdAvailable(const SurfaceId& surface_id); 59 void NotifySurfaceIdAvailable(const SurfaceId& surface_id);
61 60
62 void AddObserver(PendingFrameObserver* observer); 61 void AddObserver(PendingFrameObserver* observer);
63 void RemoveObserver(PendingFrameObserver* observer); 62 void RemoveObserver(PendingFrameObserver* observer);
64 63
65 // Called if a deadline has been hit and this surface is not yet active but 64 // Called if a deadline has been hit and this surface is not yet active but
66 // it's marked as respecting deadlines. 65 // it's marked as respecting deadlines.
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 158
160 SurfaceDependencies blocking_surfaces_; 159 SurfaceDependencies blocking_surfaces_;
161 base::ObserverList<PendingFrameObserver, true> observers_; 160 base::ObserverList<PendingFrameObserver, true> observers_;
162 161
163 DISALLOW_COPY_AND_ASSIGN(Surface); 162 DISALLOW_COPY_AND_ASSIGN(Surface);
164 }; 163 };
165 164
166 } // namespace cc 165 } // namespace cc
167 166
168 #endif // CC_SURFACES_SURFACE_H_ 167 #endif // CC_SURFACES_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698