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

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

Issue 2503283002: cc: Cleanup class/struct forward declarations (Closed)
Patch Set: Add missing fwd class decl in blimp_embedder_compositor.h Created 4 years, 1 month 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/surfaces/display_scheduler.h ('k') | cc/surfaces/surface_factory.h » ('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 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 13 matching lines...) Expand all
24 #include "cc/surfaces/surface_id.h" 24 #include "cc/surfaces/surface_id.h"
25 #include "cc/surfaces/surface_sequence.h" 25 #include "cc/surfaces/surface_sequence.h"
26 #include "cc/surfaces/surfaces_export.h" 26 #include "cc/surfaces/surfaces_export.h"
27 #include "ui/gfx/geometry/size.h" 27 #include "ui/gfx/geometry/size.h"
28 28
29 namespace ui { 29 namespace ui {
30 class LatencyInfo; 30 class LatencyInfo;
31 } 31 }
32 32
33 namespace cc { 33 namespace cc {
34
35 class BeginFrameSource;
34 class CompositorFrame; 36 class CompositorFrame;
35 class CopyOutputRequest; 37 class CopyOutputRequest;
36 class SurfaceManager;
37 class SurfaceFactory; 38 class SurfaceFactory;
38 class SurfaceResourceHolder;
39 39
40 class CC_SURFACES_EXPORT Surface { 40 class CC_SURFACES_EXPORT Surface {
41 public: 41 public:
42 using DrawCallback = SurfaceFactory::DrawCallback; 42 using DrawCallback = SurfaceFactory::DrawCallback;
43 43
44 Surface(const SurfaceId& id, base::WeakPtr<SurfaceFactory> factory); 44 Surface(const SurfaceId& id, base::WeakPtr<SurfaceFactory> factory);
45 ~Surface(); 45 ~Surface();
46 46
47 const SurfaceId& surface_id() const { return surface_id_; } 47 const SurfaceId& surface_id() const { return surface_id_; }
48 const SurfaceId& previous_frame_surface_id() const { 48 const SurfaceId& previous_frame_surface_id() const {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 std::vector<SurfaceId> referenced_surfaces_; 112 std::vector<SurfaceId> referenced_surfaces_;
113 113
114 DrawCallback draw_callback_; 114 DrawCallback draw_callback_;
115 115
116 DISALLOW_COPY_AND_ASSIGN(Surface); 116 DISALLOW_COPY_AND_ASSIGN(Surface);
117 }; 117 };
118 118
119 } // namespace cc 119 } // namespace cc
120 120
121 #endif // CC_SURFACES_SURFACE_H_ 121 #endif // CC_SURFACES_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/surfaces/display_scheduler.h ('k') | cc/surfaces/surface_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698