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

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

Issue 1383293002: Revert of Overlays: Remove special casing of primary overlay plane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/output/gl_renderer_unittest.cc ('k') | cc/output/output_surface.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 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 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 // Notifies frame-rate smoothness preference. If true, all non-critical 145 // Notifies frame-rate smoothness preference. If true, all non-critical
146 // processing should be stopped, or lowered in priority. 146 // processing should be stopped, or lowered in priority.
147 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) {} 147 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) {}
148 148
149 bool HasClient() { return !!client_; } 149 bool HasClient() { return !!client_; }
150 150
151 // Get the class capable of informing cc of hardware overlay capability. 151 // Get the class capable of informing cc of hardware overlay capability.
152 virtual OverlayCandidateValidator* GetOverlayCandidateValidator() const; 152 virtual OverlayCandidateValidator* GetOverlayCandidateValidator() const;
153 153
154 // Returns true if a main image overlay plane should be scheduled.
155 virtual bool IsDisplayedAsOverlayPlane() const;
156
157 // Get the texture for the main image's overlay. 154 // Get the texture for the main image's overlay.
158 virtual unsigned GetOverlayTextureId() const; 155 virtual unsigned GetOverlayTextureId() const;
159 156
160 void DidLoseOutputSurface(); 157 void DidLoseOutputSurface();
161 void SetMemoryPolicy(const ManagedMemoryPolicy& policy); 158 void SetMemoryPolicy(const ManagedMemoryPolicy& policy);
162 159
163 // Support for a pull-model where draws are requested by the output surface. 160 // Support for a pull-model where draws are requested by the output surface.
164 // 161 //
165 // OutputSurface::Invalidate is called by the compositor to notify that 162 // OutputSurface::Invalidate is called by the compositor to notify that
166 // there's new content. 163 // there's new content.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 bool external_stencil_test_enabled_; 206 bool external_stencil_test_enabled_;
210 207
211 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; 208 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_;
212 209
213 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 210 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
214 }; 211 };
215 212
216 } // namespace cc 213 } // namespace cc
217 214
218 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ 215 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698