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

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: fix webview 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
« no previous file with comments | « cc/surfaces/surfaces_pixeltest.cc ('k') | components/mus/surfaces/top_level_display_client.cc » ('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 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::SurfaceId surface_id,
60 cc::BeginFrameSource* begin_frame_source) override;
59 61
60 scoped_refptr<SurfacesState> surfaces_state_; 62 scoped_refptr<SurfacesState> surfaces_state_;
61 cc::SurfaceFactory factory_; 63 cc::SurfaceFactory factory_;
62 cc::SurfaceId cc_id_; 64 cc::SurfaceId cc_id_;
63 65
64 gfx::Size last_submitted_frame_size_; 66 gfx::Size last_submitted_frame_size_;
65 scoped_ptr<cc::CompositorFrame> pending_frame_; 67 scoped_ptr<cc::CompositorFrame> pending_frame_;
66 68
67 scoped_ptr<cc::Display> display_; 69 scoped_ptr<cc::Display> display_;
68 70
69 DISALLOW_COPY_AND_ASSIGN(TopLevelDisplayClient); 71 DISALLOW_COPY_AND_ASSIGN(TopLevelDisplayClient);
70 }; 72 };
71 73
72 } // namespace mus 74 } // namespace mus
73 75
74 #endif // COMPONENTS_MUS_SURFACES_DISPLAY_IMPL_H_ 76 #endif // COMPONENTS_MUS_SURFACES_DISPLAY_IMPL_H_
OLDNEW
« no previous file with comments | « cc/surfaces/surfaces_pixeltest.cc ('k') | components/mus/surfaces/top_level_display_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698