blob: eacb0b1ad00d23e9a7005951e240285e10312a5a [file] [log] [blame]
revemanb195f41d2015-11-19 22:16:481// Copyright 2015 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef COMPONENTS_EXO_SURFACE_H_
6#define COMPONENTS_EXO_SURFACE_H_
7
8#include <list>
reveman70baca12016-05-31 20:35:309#include <set>
reveman27fe2642015-11-20 06:33:3910#include <utility>
revemanb195f41d2015-11-19 22:16:4811
12#include "base/callback.h"
13#include "base/macros.h"
jbaumanbd9586a92016-05-28 01:09:0314#include "base/memory/ref_counted.h"
revemanb195f41d2015-11-19 22:16:4815#include "base/memory/weak_ptr.h"
reveman27fe2642015-11-20 06:33:3916#include "base/observer_list.h"
Dominik Laskowski0dcf91352017-11-29 19:21:3517#include "cc/base/region.h"
danakjc7afae52017-06-20 21:12:4118#include "components/exo/layer_tree_frame_sink_holder.h"
David Reveman93f67c02017-09-06 03:23:0819#include "components/exo/surface_delegate.h"
Fady Samuelc645ffe2017-07-24 17:28:2020#include "components/viz/common/frame_sinks/begin_frame_source.h"
Fady Samuel4f7f0fb32017-07-28 15:33:3721#include "components/viz/common/resources/transferable_resource.h"
reedcc9c70f2016-11-22 04:26:0122#include "third_party/skia/include/core/SkBlendMode.h"
reveman4c94cf962015-12-03 06:49:4323#include "ui/aura/window.h"
Peng Huangb921f3f2017-09-27 20:01:2324#include "ui/aura/window_targeter.h"
revemanb195f41d2015-11-19 22:16:4825#include "ui/gfx/geometry/rect.h"
revemane295c662017-01-30 23:01:2126#include "ui/gfx/native_widget_types.h"
Lloyd Pique0a3045f2017-09-15 23:34:1227#include "ui/gfx/transform.h"
revemanb195f41d2015-11-19 22:16:4828
29namespace base {
30namespace trace_event {
31class TracedValue;
32}
33}
34
reveman2966d7702016-02-12 02:09:5435namespace gfx {
36class Path;
37}
38
danakj5e0a12b2017-09-25 17:26:4939namespace viz {
40class CompositorFrame;
41}
42
revemanb195f41d2015-11-19 22:16:4843namespace exo {
44class Buffer;
Peng Huang583c9dc62017-07-27 23:38:2845class LayerTreeFrameSinkHolder;
reveman70baca12016-05-31 20:35:3046class Pointer;
reveman27fe2642015-11-20 06:33:3947class SurfaceObserver;
jbaumanbd9586a92016-05-28 01:09:0348class Surface;
49
jbaumanb362a892016-06-17 03:30:5650namespace subtle {
51class PropertyHelper;
52}
53
David Revemanfca309b2017-08-24 18:18:1154// Counter-clockwise rotations.
55enum class Transform { NORMAL, ROTATE_90, ROTATE_180, ROTATE_270 };
56
reveman70baca12016-05-31 20:35:3057// The pointer class is currently the only cursor provider class but this can
58// change in the future when better hardware cursor support is added.
59using CursorProvider = Pointer;
60
revemanb195f41d2015-11-19 22:16:4861// This class represents a rectangular area that is displayed on the screen.
62// It has a location, size and pixel contents.
Hans Wennborgaf90ff12017-09-04 19:46:0263class Surface final : public ui::PropertyHandler {
revemanb195f41d2015-11-19 22:16:4864 public:
reveman2d3815d2016-06-26 20:13:2565 using PropertyDeallocator = void (*)(int64_t value);
jbaumanb362a892016-06-17 03:30:5666
revemanb195f41d2015-11-19 22:16:4867 Surface();
Peng Huang583c9dc62017-07-27 23:38:2868 ~Surface();
revemanb195f41d2015-11-19 22:16:4869
reveman39b32c872015-12-08 05:34:0570 // Type-checking downcast routine.
kinabad14ca03e2016-02-23 04:43:3571 static Surface* AsSurface(const aura::Window* window);
reveman39b32c872015-12-08 05:34:0572
jbaumane3526252016-06-09 18:43:0573 aura::Window* window() { return window_.get(); }
74
revemanb195f41d2015-11-19 22:16:4875 // Set a buffer as the content of this surface. A buffer can only be attached
76 // to one surface at a time.
77 void Attach(Buffer* buffer);
78
79 // Describe the regions where the pending buffer is different from the
80 // current surface contents, and where the surface therefore needs to be
81 // repainted.
82 void Damage(const gfx::Rect& rect);
83
reveman211cf802017-01-10 00:30:5984 // Request notification when it's a good time to produce a new frame. Useful
85 // for throttling redrawing operations, and driving animations.
revemanb195f41d2015-11-19 22:16:4886 using FrameCallback = base::Callback<void(base::TimeTicks frame_time)>;
87 void RequestFrameCallback(const FrameCallback& callback);
88
reveman211cf802017-01-10 00:30:5989 // Request notification when the next frame is displayed. Useful for
90 // throttling redrawing operations, and driving animations.
91 using PresentationCallback =
92 base::Callback<void(base::TimeTicks presentation_time,
Peng Huang5207a6e2017-10-26 00:39:3093 base::TimeDelta refresh,
94 uint32_t flags)>;
reveman211cf802017-01-10 00:30:5995 void RequestPresentationCallback(const PresentationCallback& callback);
96
revemanb195f41d2015-11-19 22:16:4897 // This sets the region of the surface that contains opaque content.
Dominik Laskowski0dcf91352017-11-29 19:21:3598 void SetOpaqueRegion(const cc::Region& region);
revemanb195f41d2015-11-19 22:16:4899
reveman2966d7702016-02-12 02:09:54100 // This sets the region of the surface that can receive pointer and touch
Dominik Laskowski57064702017-11-30 10:31:41101 // events. The region is clipped to the surface bounds.
Dominik Laskowski0dcf91352017-11-29 19:21:35102 void SetInputRegion(const cc::Region& region);
reveman2966d7702016-02-12 02:09:54103
Dominik Laskowski2d4316412017-12-13 19:14:44104 // This overrides the input region to the surface bounds with an outset.
105 // TODO(domlaskowski): Remove this once client-driven resizing is removed.
106 void SetInputOutset(int outset);
107
reveman7efa4b02016-01-06 08:29:54108 // This sets the scaling factor used to interpret the contents of the buffer
109 // attached to the surface. Note that if the scale is larger than 1, then you
110 // have to attach a buffer that is larger (by a factor of scale in each
111 // dimension) than the desired surface size.
112 void SetBufferScale(float scale);
113
David Revemanfca309b2017-08-24 18:18:11114 // This sets the transformation used to interpret the contents of the buffer
115 // attached to the surface.
116 void SetBufferTransform(Transform transform);
117
reveman27fe2642015-11-20 06:33:39118 // Functions that control sub-surface state. All sub-surface state is
119 // double-buffered and will be applied when Commit() is called.
120 void AddSubSurface(Surface* sub_surface);
121 void RemoveSubSurface(Surface* sub_surface);
122 void SetSubSurfacePosition(Surface* sub_surface, const gfx::Point& position);
123 void PlaceSubSurfaceAbove(Surface* sub_surface, Surface* reference);
124 void PlaceSubSurfaceBelow(Surface* sub_surface, Surface* sibling);
David Reveman8b43b352017-11-03 15:24:51125 void OnSubSurfaceCommit();
reveman27fe2642015-11-20 06:33:39126
reveman642d8c332016-02-19 19:55:44127 // This sets the surface viewport for scaling.
128 void SetViewport(const gfx::Size& viewport);
129
reveman8e323902016-05-23 21:55:36130 // This sets the surface crop rectangle.
131 void SetCrop(const gfx::RectF& crop);
132
reveman85b7a562016-03-17 23:27:32133 // This sets the only visible on secure output flag, preventing it from
134 // appearing in screenshots or from being viewed on non-secure displays.
135 void SetOnlyVisibleOnSecureOutput(bool only_visible_on_secure_output);
136
revemanfca687e2016-05-10 21:44:48137 // This sets the blend mode that will be used when drawing the surface.
reedcc9c70f2016-11-22 04:26:01138 void SetBlendMode(SkBlendMode blend_mode);
revemanfca687e2016-05-10 21:44:48139
140 // This sets the alpha value that will be applied to the whole surface.
141 void SetAlpha(float alpha);
142
David Reveman93f67c02017-09-06 03:23:08143 // Request that surface should have the specified frame type.
144 void SetFrame(SurfaceFrameType type);
145
David Reveman32715092017-12-05 18:24:11146 // Request "parent" for surface.
147 void SetParent(Surface* parent, const gfx::Point& position);
148
revemanb195f41d2015-11-19 22:16:48149 // Surface state (damage regions, attached buffers, etc.) is double-buffered.
150 // A Commit() call atomically applies all pending state, replacing the
reveman27fe2642015-11-20 06:33:39151 // current state. Commit() is not guaranteed to be synchronous. See
152 // CommitSurfaceHierarchy() below.
revemanb195f41d2015-11-19 22:16:48153 void Commit();
154
David Reveman8b43b352017-11-03 15:24:51155 // This will commit all pending state of the surface and its descendants by
David Reveman7a126ba2017-11-09 17:17:41156 // recursively calling CommitSurfaceHierarchy() for each sub-surface.
157 // If |synchronized| is set to false, then synchronized surfaces should not
158 // commit pending state.
David Revemanef1cb082017-11-09 21:14:40159 void CommitSurfaceHierarchy(bool synchronized);
reveman27fe2642015-11-20 06:33:39160
David Revemanef1cb082017-11-09 21:14:40161 // This will append current callbacks for surface and its descendants to
162 // |frame_callbacks| and |presentation_callbacks|.
163 void AppendSurfaceHierarchyCallbacks(
164 std::list<FrameCallback>* frame_callbacks,
165 std::list<PresentationCallback>* presentation_callbacks);
166
167 // This will append contents for surface and its descendants to frame.
Peng Huang76f5fd02017-09-01 00:59:39168 void AppendSurfaceHierarchyContentsToFrame(
169 const gfx::Point& origin,
170 float device_scale_factor,
171 LayerTreeFrameSinkHolder* frame_sink_holder,
danakj5e0a12b2017-09-25 17:26:49172 viz::CompositorFrame* frame);
Peng Huang76f5fd02017-09-01 00:59:39173
reveman27fe2642015-11-20 06:33:39174 // Returns true if surface is in synchronized mode.
175 bool IsSynchronized() const;
176
Dominik Laskowski57064702017-11-30 10:31:41177 // Returns false if the hit test region is empty.
178 bool HasHitTestRegion() const;
reveman2966d7702016-02-12 02:09:54179
Dominik Laskowski57064702017-11-30 10:31:41180 // Returns true if |point| is inside the surface.
181 bool HitTest(const gfx::Point& point) const;
reveman2966d7702016-02-12 02:09:54182
Dominik Laskowski57064702017-11-30 10:31:41183 // Sets |mask| to the path that delineates the hit test region of the surface.
reveman2966d7702016-02-12 02:09:54184 void GetHitTestMask(gfx::Path* mask) const;
reveman4c94cf962015-12-03 06:49:43185
Peng Huangb921f3f2017-09-27 20:01:23186 // Returns the current input region of surface in the form of a set of
187 // hit-test rects.
188 std::unique_ptr<aura::WindowTargeter::HitTestRects> GetHitTestShapeRects()
189 const;
190
reveman70baca12016-05-31 20:35:30191 // Surface does not own cursor providers. It is the responsibility of the
192 // caller to remove the cursor provider before it is destroyed.
193 void RegisterCursorProvider(CursorProvider* provider);
194 void UnregisterCursorProvider(CursorProvider* provider);
195
revemane295c662017-01-30 23:01:21196 // Returns the cursor for the surface. If no cursor provider is registered
ergeeba7c622017-04-25 18:06:16197 // then CursorType::kNull is returned.
revemane295c662017-01-30 23:01:21198 gfx::NativeCursor GetCursor();
reveman70baca12016-05-31 20:35:30199
revemanb195f41d2015-11-19 22:16:48200 // Set the surface delegate.
201 void SetSurfaceDelegate(SurfaceDelegate* delegate);
202
reveman27fe2642015-11-20 06:33:39203 // Returns true if surface has been assigned a surface delegate.
204 bool HasSurfaceDelegate() const;
205
206 // Surface does not own observers. It is the responsibility of the observer
207 // to remove itself when it is done observing.
208 void AddSurfaceObserver(SurfaceObserver* observer);
209 void RemoveSurfaceObserver(SurfaceObserver* observer);
210 bool HasSurfaceObserver(const SurfaceObserver* observer) const;
211
revemanb195f41d2015-11-19 22:16:48212 // Returns a trace value representing the state of the surface.
dcheng31759da2016-04-21 01:26:31213 std::unique_ptr<base::trace_event::TracedValue> AsTracedValue() const;
revemanb195f41d2015-11-19 22:16:48214
eseckler599d86bb2017-03-15 09:02:55215 // Called when the begin frame source has changed.
Fady Samuelc645ffe2017-07-24 17:28:20216 void SetBeginFrameSource(viz::BeginFrameSource* begin_frame_source);
jbaumanbd9586a92016-05-28 01:09:03217
David Reveman7a126ba2017-11-09 17:17:41218 // Returns the active content size.
Peng Huangb07b0652017-06-27 17:25:22219 const gfx::Size& content_size() const { return content_size_; }
jbaumanb362a892016-06-17 03:30:56220
David Reveman7a126ba2017-11-09 17:17:41221 // Returns the active content bounds for surface hierarchy. ie. the bounding
222 // box of the surface and its descendants, in the local coordinate space of
223 // the surface.
224 const gfx::Rect& surface_hierarchy_content_bounds() const {
225 return surface_hierarchy_content_bounds_;
226 }
227
kaznacheev8e270592017-05-25 06:13:26228 // Returns true if the associated window is in 'stylus-only' mode.
229 bool IsStylusOnly();
230
231 // Enables 'stylus-only' mode for the associated window.
232 void SetStylusOnly();
233
Peng Huangc51f7aba2017-09-05 16:00:39234 // Notify surface that resources and subsurfaces' resources have been lost.
235 void SurfaceHierarchyResourcesLost();
reveman15aee282016-11-04 19:09:20236
Peng Huang583c9dc62017-07-27 23:38:28237 // Returns true if the surface's bounds should be filled opaquely.
238 bool FillsBoundsOpaquely() const;
reveman211cf802017-01-10 00:30:59239
reveman15aee282016-11-04 19:09:20240 bool HasPendingDamageForTesting(const gfx::Rect& damage) const {
Dominik Laskowski0dcf91352017-11-29 19:21:35241 return pending_damage_.Contains(damage);
reveman15aee282016-11-04 19:09:20242 }
243
revemanb195f41d2015-11-19 22:16:48244 private:
jbaumanf4c3f292016-06-11 00:57:33245 struct State {
246 State();
247 ~State();
248
249 bool operator==(const State& other);
250 bool operator!=(const State& other) { return !(*this == other); }
251
Dominik Laskowski0dcf91352017-11-29 19:21:35252 cc::Region opaque_region;
253 cc::Region input_region;
Dominik Laskowski2d4316412017-12-13 19:14:44254 int input_outset = 0;
reveman2d3815d2016-06-26 20:13:25255 float buffer_scale = 1.0f;
David Revemanfca309b2017-08-24 18:18:11256 Transform buffer_transform = Transform::NORMAL;
jbaumanf4c3f292016-06-11 00:57:33257 gfx::Size viewport;
258 gfx::RectF crop;
259 bool only_visible_on_secure_output = false;
reedcc9c70f2016-11-22 04:26:01260 SkBlendMode blend_mode = SkBlendMode::kSrcOver;
jbaumanf4c3f292016-06-11 00:57:33261 float alpha = 1.0f;
jbauman45c06862016-06-23 19:35:02262 };
263 class BufferAttachment {
264 public:
265 BufferAttachment();
266 ~BufferAttachment();
267
268 BufferAttachment& operator=(BufferAttachment&& buffer);
269
270 base::WeakPtr<Buffer>& buffer();
271 const base::WeakPtr<Buffer>& buffer() const;
David Revemane6e23342017-11-07 06:18:06272 const gfx::Size& size() const;
jbauman45c06862016-06-23 19:35:02273 void Reset(base::WeakPtr<Buffer> buffer);
274
275 private:
276 base::WeakPtr<Buffer> buffer_;
David Revemane6e23342017-11-07 06:18:06277 gfx::Size size_;
jbauman45c06862016-06-23 19:35:02278
279 DISALLOW_COPY_AND_ASSIGN(BufferAttachment);
jbaumanf4c3f292016-06-11 00:57:33280 };
281
jbaumanb362a892016-06-17 03:30:56282 friend class subtle::PropertyHelper;
283
jbauman45c06862016-06-23 19:35:02284 // Updates current_resource_ with a new resource id corresponding to the
285 // contents of the attached buffer (or id 0, if no buffer is attached).
286 // UpdateSurface must be called afterwards to ensure the release callback
287 // will be called.
Peng Huangc51f7aba2017-09-05 16:00:39288 void UpdateResource(LayerTreeFrameSinkHolder* frame_sink_holder);
jbauman45c06862016-06-23 19:35:02289
Lloyd Pique0a3045f2017-09-15 23:34:12290 // Updates buffer_transform_ to match the current buffer parameters.
291 void UpdateBufferTransform();
292
Peng Huang583c9dc62017-07-27 23:38:28293 // Puts the current surface into a draw quad, and appends the draw quads into
294 // the |frame|.
295 void AppendContentsToFrame(const gfx::Point& origin,
Peng Huang76f5fd02017-09-01 00:59:39296 float device_scale_factor,
danakj5e0a12b2017-09-25 17:26:49297 viz::CompositorFrame* frame);
jbauman45c06862016-06-23 19:35:02298
Peng Huangc51f7aba2017-09-05 16:00:39299 // Update surface content size base on current buffer size.
Peng Huang583c9dc62017-07-27 23:38:28300 void UpdateContentSize();
eseckler599d86bb2017-03-15 09:02:55301
revemanced21f862015-11-24 00:42:49302 // This returns true when the surface has some contents assigned to it.
David Revemane6e23342017-11-07 06:18:06303 bool has_contents() const { return !current_buffer_.size().IsEmpty(); }
revemanced21f862015-11-24 00:42:49304
jbaumane3526252016-06-09 18:43:05305 // This window has the layer which contains the Surface contents.
306 std::unique_ptr<aura::Window> window_;
307
Peng Huang583c9dc62017-07-27 23:38:28308 // This true, if sub_surfaces_ has changes (order, position, etc).
309 bool sub_surfaces_changed_ = false;
jbaumanf4c3f292016-06-11 00:57:33310
jbaumanb362a892016-06-17 03:30:56311 // This is the size of the last committed contents.
312 gfx::Size content_size_;
313
David Reveman7a126ba2017-11-09 17:17:41314 // This is the bounds of the last committed surface hierarchy contents.
315 gfx::Rect surface_hierarchy_content_bounds_;
316
revemanced21f862015-11-24 00:42:49317 // This is true when Attach() has been called and new contents should take
318 // effect next time Commit() is called.
reveman2d3815d2016-06-26 20:13:25319 bool has_pending_contents_ = false;
reveman27fe2642015-11-20 06:33:39320
revemanb195f41d2015-11-19 22:16:48321 // The buffer that will become the content of surface when Commit() is called.
jbauman45c06862016-06-23 19:35:02322 BufferAttachment pending_buffer_;
revemanb195f41d2015-11-19 22:16:48323
324 // The damage region to schedule paint for when Commit() is called.
Dominik Laskowski0dcf91352017-11-29 19:21:35325 cc::Region pending_damage_;
revemanb195f41d2015-11-19 22:16:48326
Peng Huang76f5fd02017-09-01 00:59:39327 // The damage region which will be used by
328 // AppendSurfaceHierarchyContentsToFrame() to generate frame.
Dominik Laskowski0dcf91352017-11-29 19:21:35329 cc::Region damage_;
Peng Huang76f5fd02017-09-01 00:59:39330
revemanb195f41d2015-11-19 22:16:48331 // These lists contains the callbacks to notify the client when it is a good
332 // time to start producing a new frame. These callbacks move to
333 // |frame_callbacks_| when Commit() is called. Later they are moved to
reveman15aee282016-11-04 19:09:20334 // |active_frame_callbacks_| when the effect of the Commit() is scheduled to
335 // be drawn. They fire at the first begin frame notification after this.
revemanb195f41d2015-11-19 22:16:48336 std::list<FrameCallback> pending_frame_callbacks_;
David Revemanef1cb082017-11-09 21:14:40337 std::list<FrameCallback> frame_callbacks_;
reveman211cf802017-01-10 00:30:59338
339 // These lists contains the callbacks to notify the client when surface
340 // contents have been presented. These callbacks move to
341 // |presentation_callbacks_| when Commit() is called. Later they are moved to
342 // |swapping_presentation_callbacks_| when the effect of the Commit() is
343 // scheduled to be drawn and then moved to |swapped_presentation_callbacks_|
344 // after receiving VSync parameters update for the previous frame. They fire
345 // at the next VSync parameters update after that.
346 std::list<PresentationCallback> pending_presentation_callbacks_;
David Revemanef1cb082017-11-09 21:14:40347 std::list<PresentationCallback> presentation_callbacks_;
revemanb195f41d2015-11-19 22:16:48348
jbaumanf4c3f292016-06-11 00:57:33349 // This is the state that has yet to be committed.
350 State pending_state_;
revemanb195f41d2015-11-19 22:16:48351
jbaumanf4c3f292016-06-11 00:57:33352 // This is the state that has been committed.
353 State state_;
reveman7efa4b02016-01-06 08:29:54354
Dominik Laskowski57064702017-11-30 10:31:41355 // Cumulative input region of surface and its sub-surfaces.
356 cc::Region hit_test_region_;
357
reveman27fe2642015-11-20 06:33:39358 // The stack of sub-surfaces to take effect when Commit() is called.
359 // Bottom-most sub-surface at the front of the list and top-most sub-surface
360 // at the back.
361 using SubSurfaceEntry = std::pair<Surface*, gfx::Point>;
362 using SubSurfaceEntryList = std::list<SubSurfaceEntry>;
363 SubSurfaceEntryList pending_sub_surfaces_;
Peng Huang583c9dc62017-07-27 23:38:28364 SubSurfaceEntryList sub_surfaces_;
reveman27fe2642015-11-20 06:33:39365
revemanced21f862015-11-24 00:42:49366 // The buffer that is currently set as content of surface.
jbauman45c06862016-06-23 19:35:02367 BufferAttachment current_buffer_;
revemanced21f862015-11-24 00:42:49368
jbauman2fdc0732016-06-07 00:55:36369 // The last resource that was sent to a surface.
Fady Samuel4f7f0fb32017-07-28 15:33:37370 viz::TransferableResource current_resource_;
jbauman2fdc0732016-06-07 00:55:36371
revemanca132dc2017-01-31 22:35:54372 // Whether the last resource that was sent to a surface has an alpha channel.
373 bool current_resource_has_alpha_ = false;
374
reveman27fe2642015-11-20 06:33:39375 // This is true if a call to Commit() as been made but
376 // CommitSurfaceHierarchy() has not yet been called.
Peng Huang76f5fd02017-09-01 00:59:39377 bool needs_commit_surface_ = false;
reveman27fe2642015-11-20 06:33:39378
Peng Huangc51f7aba2017-09-05 16:00:39379 // This is true if UpdateResources() should be called.
380 bool needs_update_resource_ = true;
381
Lloyd Pique0a3045f2017-09-15 23:34:12382 // The current buffer transform matrix. It specifies the transformation from
383 // normalized buffer coordinates to post-tranform buffer coordinates.
384 gfx::Transform buffer_transform_;
385
reveman7cadea42016-02-05 20:14:38386 // This is set when the compositing starts and passed to active frame
387 // callbacks when compositing successfully ends.
388 base::TimeTicks last_compositing_start_time_;
389
reveman70baca12016-05-31 20:35:30390 // Cursor providers. Surface does not own the cursor providers.
391 std::set<CursorProvider*> cursor_providers_;
392
revemanb195f41d2015-11-19 22:16:48393 // This can be set to have some functions delegated. E.g. ShellSurface class
394 // can set this to handle Commit() and apply any double buffered state it
395 // maintains.
reveman2d3815d2016-06-26 20:13:25396 SurfaceDelegate* delegate_ = nullptr;
revemanb195f41d2015-11-19 22:16:48397
reveman27fe2642015-11-20 06:33:39398 // Surface observer list. Surface does not own the observers.
399 base::ObserverList<SurfaceObserver, true> observers_;
400
revemanb195f41d2015-11-19 22:16:48401 DISALLOW_COPY_AND_ASSIGN(Surface);
402};
403
404} // namespace exo
405
406#endif // COMPONENTS_EXO_SURFACE_H_