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

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

Issue 2388753003: Introduce cc::LocalFrameId and use in SurfaceFactory (Closed)
Patch Set: Fix exo_unittests Created 4 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
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_DIRECT_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_
6 #define CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_ 6 #define CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/threading/thread_checker.h" 9 #include "base/threading/thread_checker.h"
10 #include "cc/output/compositor_frame_sink.h" 10 #include "cc/output/compositor_frame_sink.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void DisplayWillDrawAndSwap(bool will_draw_and_swap, 56 void DisplayWillDrawAndSwap(bool will_draw_and_swap,
57 const RenderPassList& render_passes) override; 57 const RenderPassList& render_passes) override;
58 void DisplayDidDrawAndSwap() override; 58 void DisplayDidDrawAndSwap() override;
59 59
60 private: 60 private:
61 void DidDrawCallback(); 61 void DidDrawCallback();
62 62
63 // This class is only meant to be used on a single thread. 63 // This class is only meant to be used on a single thread.
64 base::ThreadChecker thread_checker_; 64 base::ThreadChecker thread_checker_;
65 65
66 FrameSinkId frame_sink_id_; 66 const FrameSinkId frame_sink_id_;
67 LocalFrameId delegated_local_frame_id_;
67 SurfaceManager* surface_manager_; 68 SurfaceManager* surface_manager_;
68 SurfaceIdAllocator surface_id_allocator_; 69 SurfaceIdAllocator surface_id_allocator_;
69 Display* display_; 70 Display* display_;
70 SurfaceFactory factory_; 71 SurfaceFactory factory_;
71 SurfaceId delegated_surface_id_;
72 gfx::Size last_swap_frame_size_; 72 gfx::Size last_swap_frame_size_;
73 bool is_lost_ = false; 73 bool is_lost_ = false;
74 74
75 DISALLOW_COPY_AND_ASSIGN(DirectCompositorFrameSink); 75 DISALLOW_COPY_AND_ASSIGN(DirectCompositorFrameSink);
76 }; 76 };
77 77
78 } // namespace cc 78 } // namespace cc
79 79
80 #endif // CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_ 80 #endif // CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698