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

Side by Side Diff: components/mus/ws/server_window_surface.h

Issue 2092843002: Implement CompositorFrame Struct Traits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed dcheng's comments Created 4 years, 5 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 | « components/mus/ws/platform_display.cc ('k') | components/mus/ws/server_window_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 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 COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_H_ 5 #ifndef COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_H_
6 #define COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_H_ 6 #define COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 25 matching lines...) Expand all
36 mojom::SurfaceClientPtr client); 36 mojom::SurfaceClientPtr client);
37 37
38 ~ServerWindowSurface() override; 38 ~ServerWindowSurface() override;
39 39
40 const gfx::Size& last_submitted_frame_size() const { 40 const gfx::Size& last_submitted_frame_size() const {
41 return last_submitted_frame_size_; 41 return last_submitted_frame_size_;
42 } 42 }
43 43
44 // mojom::Surface: 44 // mojom::Surface:
45 void SubmitCompositorFrame( 45 void SubmitCompositorFrame(
46 cc::mojom::CompositorFramePtr frame, 46 cc::CompositorFrame frame,
47 const SubmitCompositorFrameCallback& callback) override; 47 const SubmitCompositorFrameCallback& callback) override;
48 48
49 const cc::SurfaceId& id() const { return surface_id_; } 49 const cc::SurfaceId& id() const { return surface_id_; }
50 50
51 // Destroys old surfaces that have been outdated by a new surface. 51 // Destroys old surfaces that have been outdated by a new surface.
52 void DestroySurfacesScheduledForDestruction(); 52 void DestroySurfacesScheduledForDestruction();
53 53
54 // Registers this with the SurfaceManager 54 // Registers this with the SurfaceManager
55 void RegisterForBeginFrames(); 55 void RegisterForBeginFrames();
56 56
(...skipping 20 matching lines...) Expand all
77 bool registered_surface_factory_client_; 77 bool registered_surface_factory_client_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(ServerWindowSurface); 79 DISALLOW_COPY_AND_ASSIGN(ServerWindowSurface);
80 }; 80 };
81 81
82 } // namespace ws 82 } // namespace ws
83 83
84 } // namespace mus 84 } // namespace mus
85 85
86 #endif // COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_H_ 86 #endif // COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_H_
OLDNEW
« no previous file with comments | « components/mus/ws/platform_display.cc ('k') | components/mus/ws/server_window_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698