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

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

Issue 1304063014: cc: Plumbing for BeginFrameSource based on Surfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add surface_id to SurfaceFactoryClient::SetBeginFrameSource Created 5 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 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 "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/surfaces/display_client.h" 9 #include "cc/surfaces/display_client.h"
10 #include "cc/surfaces/surface_factory.h" 10 #include "cc/surfaces/surface_factory.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 void CommitVSyncParameters(base::TimeTicks timebase, 49 void CommitVSyncParameters(base::TimeTicks timebase,
50 base::TimeDelta interval) override; 50 base::TimeDelta interval) override;
51 void OutputSurfaceLost() override; 51 void OutputSurfaceLost() override;
52 void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override; 52 void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override;
53 53
54 // SurfacesContextProviderDelegate: 54 // SurfacesContextProviderDelegate:
55 void OnVSyncParametersUpdated(int64_t timebase, int64_t interval) override; 55 void OnVSyncParametersUpdated(int64_t timebase, int64_t interval) override;
56 56
57 // SurfaceFactoryClient implementation. 57 // SurfaceFactoryClient implementation.
58 void ReturnResources(const cc::ReturnedResourceArray& resources) override; 58 void ReturnResources(const cc::ReturnedResourceArray& resources) override;
59 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override;
59 60
60 scoped_refptr<SurfacesState> surfaces_state_; 61 scoped_refptr<SurfacesState> surfaces_state_;
61 cc::SurfaceFactory factory_; 62 cc::SurfaceFactory factory_;
62 cc::SurfaceId cc_id_; 63 cc::SurfaceId cc_id_;
63 64
64 gfx::Size last_submitted_frame_size_; 65 gfx::Size last_submitted_frame_size_;
65 scoped_ptr<cc::CompositorFrame> pending_frame_; 66 scoped_ptr<cc::CompositorFrame> pending_frame_;
66 67
67 scoped_ptr<cc::Display> display_; 68 scoped_ptr<cc::Display> display_;
68 69
69 DISALLOW_COPY_AND_ASSIGN(TopLevelDisplayClient); 70 DISALLOW_COPY_AND_ASSIGN(TopLevelDisplayClient);
70 }; 71 };
71 72
72 } // namespace mus 73 } // namespace mus
73 74
74 #endif // COMPONENTS_MUS_SURFACES_DISPLAY_IMPL_H_ 75 #endif // COMPONENTS_MUS_SURFACES_DISPLAY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698