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

Side by Side Diff: cc/output/output_surface.h

Issue 2321883002: cc: Remove SetMemoryPolicy from OutputSurface and Display. (Closed)
Patch Set: nits Created 4 years, 3 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_OUTPUT_OUTPUT_SURFACE_H_ 5 #ifndef CC_OUTPUT_OUTPUT_SURFACE_H_
6 #define CC_OUTPUT_OUTPUT_SURFACE_H_ 6 #define CC_OUTPUT_OUTPUT_SURFACE_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 // Get the class capable of informing cc of hardware overlay capability. 161 // Get the class capable of informing cc of hardware overlay capability.
162 virtual OverlayCandidateValidator* GetOverlayCandidateValidator() const; 162 virtual OverlayCandidateValidator* GetOverlayCandidateValidator() const;
163 163
164 // Returns true if a main image overlay plane should be scheduled. 164 // Returns true if a main image overlay plane should be scheduled.
165 virtual bool IsDisplayedAsOverlayPlane() const; 165 virtual bool IsDisplayedAsOverlayPlane() const;
166 166
167 // Get the texture for the main image's overlay. 167 // Get the texture for the main image's overlay.
168 virtual unsigned GetOverlayTextureId() const; 168 virtual unsigned GetOverlayTextureId() const;
169 169
170 virtual void DidLoseOutputSurface(); 170 virtual void DidLoseOutputSurface();
171 void SetMemoryPolicy(const ManagedMemoryPolicy& policy);
172 171
173 // Support for a pull-model where draws are requested by the output surface. 172 // Support for a pull-model where draws are requested by the output surface.
174 // 173 //
175 // OutputSurface::Invalidate is called by the compositor to notify that 174 // OutputSurface::Invalidate is called by the compositor to notify that
176 // there's new content. 175 // there's new content.
177 virtual void Invalidate() {} 176 virtual void Invalidate() {}
178 177
179 // If this returns true, then the surface will not attempt to draw. 178 // If this returns true, then the surface will not attempt to draw.
180 virtual bool SurfaceIsSuspendForRecycle() const; 179 virtual bool SurfaceIsSuspendForRecycle() const;
181 180
(...skipping 27 matching lines...) Expand all
209 bool external_stencil_test_enabled_ = false; 208 bool external_stencil_test_enabled_ = false;
210 209
211 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; 210 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_;
212 211
213 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 212 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
214 }; 213 };
215 214
216 } // namespace cc 215 } // namespace cc
217 216
218 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ 217 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « blimp/client/support/compositor/blimp_layer_tree_settings.cc ('k') | cc/output/output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698