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

Side by Side Diff: components/view_manager/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: SurfaceAggregator tests; fix some bugs revealed by tests 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_VIEW_MANAGER_SURFACES_DISPLAY_IMPL_H_ 5 #ifndef COMPONENTS_VIEW_MANAGER_SURFACES_DISPLAY_IMPL_H_
6 #define COMPONENTS_VIEW_MANAGER_SURFACES_DISPLAY_IMPL_H_ 6 #define COMPONENTS_VIEW_MANAGER_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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 base::TimeDelta interval) override; 53 base::TimeDelta interval) override;
54 void OutputSurfaceLost() override; 54 void OutputSurfaceLost() override;
55 void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override; 55 void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override;
56 56
57 // SurfacesContextProviderDelegate: 57 // SurfacesContextProviderDelegate:
58 void OnContextCreated(); 58 void OnContextCreated();
59 void OnVSyncParametersUpdated(int64_t timebase, int64_t interval) override; 59 void OnVSyncParametersUpdated(int64_t timebase, int64_t interval) override;
60 60
61 // SurfaceFactoryClient implementation. 61 // SurfaceFactoryClient implementation.
62 void ReturnResources(const cc::ReturnedResourceArray& resources) override; 62 void ReturnResources(const cc::ReturnedResourceArray& resources) override;
63 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override;
63 64
64 scoped_refptr<gles2::GpuState> gpu_state_; 65 scoped_refptr<gles2::GpuState> gpu_state_;
65 scoped_refptr<SurfacesState> surfaces_state_; 66 scoped_refptr<SurfacesState> surfaces_state_;
66 cc::SurfaceFactory factory_; 67 cc::SurfaceFactory factory_;
67 cc::SurfaceId cc_id_; 68 cc::SurfaceId cc_id_;
68 69
69 gfx::Size last_submitted_frame_size_; 70 gfx::Size last_submitted_frame_size_;
70 scoped_ptr<cc::CompositorFrame> pending_frame_; 71 scoped_ptr<cc::CompositorFrame> pending_frame_;
71 72
72 scoped_ptr<cc::Display> display_; 73 scoped_ptr<cc::Display> display_;
73 74
74 DISALLOW_COPY_AND_ASSIGN(TopLevelDisplayClient); 75 DISALLOW_COPY_AND_ASSIGN(TopLevelDisplayClient);
75 }; 76 };
76 77
77 } // namespace surfaces 78 } // namespace surfaces
78 79
79 #endif // COMPONENTS_VIEW_MANAGER_SURFACES_DISPLAY_IMPL_H_ 80 #endif // COMPONENTS_VIEW_MANAGER_SURFACES_DISPLAY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698