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

Side by Side Diff: components/mus/surfaces/top_level_display_client.h

Issue 1673783004: Hook up BeginFrameSource to SurfaceFactoryClient via SurfaceManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Register id namespace on Android Created 4 years, 9 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 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_SURFACES_DISPLAY_IMPL_H_ 5 #ifndef COMPONENTS_MUS_SURFACES_DISPLAY_IMPL_H_
6 #define COMPONENTS_MUS_SURFACES_DISPLAY_IMPL_H_ 6 #define COMPONENTS_MUS_SURFACES_DISPLAY_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 void CommitVSyncParameters(base::TimeTicks timebase, 57 void CommitVSyncParameters(base::TimeTicks timebase,
58 base::TimeDelta interval) override; 58 base::TimeDelta interval) override;
59 void OutputSurfaceLost() override; 59 void OutputSurfaceLost() override;
60 void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override; 60 void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override;
61 61
62 // SurfacesContextProviderDelegate: 62 // SurfacesContextProviderDelegate:
63 void OnVSyncParametersUpdated(int64_t timebase, int64_t interval) override; 63 void OnVSyncParametersUpdated(int64_t timebase, int64_t interval) override;
64 64
65 // SurfaceFactoryClient implementation. 65 // SurfaceFactoryClient implementation.
66 void ReturnResources(const cc::ReturnedResourceArray& resources) override; 66 void ReturnResources(const cc::ReturnedResourceArray& resources) override;
67 void SetBeginFrameSource(cc::SurfaceId surface_id, 67 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override;
68 cc::BeginFrameSource* begin_frame_source) override;
69 68
70 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 69 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
71 scoped_refptr<SurfacesState> surfaces_state_; 70 scoped_refptr<SurfacesState> surfaces_state_;
72 cc::SurfaceFactory factory_; 71 cc::SurfaceFactory factory_;
73 cc::SurfaceId cc_id_; 72 cc::SurfaceId cc_id_;
74 73
75 gfx::Size last_submitted_frame_size_; 74 gfx::Size last_submitted_frame_size_;
76 scoped_ptr<cc::CompositorFrame> pending_frame_; 75 scoped_ptr<cc::CompositorFrame> pending_frame_;
77 76
78 scoped_ptr<cc::SyntheticBeginFrameSource> synthetic_frame_source_; 77 scoped_ptr<cc::SyntheticBeginFrameSource> synthetic_frame_source_;
79 scoped_ptr<cc::DisplayScheduler> scheduler_; 78 scoped_ptr<cc::DisplayScheduler> scheduler_;
80 scoped_ptr<cc::Display> display_; 79 scoped_ptr<cc::Display> display_;
81 80
82 DISALLOW_COPY_AND_ASSIGN(TopLevelDisplayClient); 81 DISALLOW_COPY_AND_ASSIGN(TopLevelDisplayClient);
83 }; 82 };
84 83
85 } // namespace mus 84 } // namespace mus
86 85
87 #endif // COMPONENTS_MUS_SURFACES_DISPLAY_IMPL_H_ 86 #endif // COMPONENTS_MUS_SURFACES_DISPLAY_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/surface_hittest_test_helpers.h ('k') | components/mus/surfaces/top_level_display_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698