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

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

Issue 1821863002: Hook up ui::Compositor to Display's BeginFrameSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit test compilation 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 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_DISPLAY_H_ 5 #ifndef CC_SURFACES_DISPLAY_H_
6 #define CC_SURFACES_DISPLAY_H_ 6 #define CC_SURFACES_DISPLAY_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void SetExternalClip(const gfx::Rect& clip); 68 void SetExternalClip(const gfx::Rect& clip);
69 69
70 SurfaceId CurrentSurfaceId(); 70 SurfaceId CurrentSurfaceId();
71 71
72 // DisplaySchedulerClient implementation. 72 // DisplaySchedulerClient implementation.
73 bool DrawAndSwap() override; 73 bool DrawAndSwap() override;
74 74
75 // OutputSurfaceClient implementation. 75 // OutputSurfaceClient implementation.
76 void CommitVSyncParameters(base::TimeTicks timebase, 76 void CommitVSyncParameters(base::TimeTicks timebase,
77 base::TimeDelta interval) override; 77 base::TimeDelta interval) override;
78 void SetBeginFrameSource(BeginFrameSource* source) override;
78 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override; 79 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override;
79 void DidSwapBuffers() override; 80 void DidSwapBuffers() override;
80 void DidSwapBuffersComplete() override; 81 void DidSwapBuffersComplete() override;
81 void ReclaimResources(const CompositorFrameAck* ack) override; 82 void ReclaimResources(const CompositorFrameAck* ack) override;
82 void DidLoseOutputSurface() override; 83 void DidLoseOutputSurface() override;
83 void SetExternalTilePriorityConstraints( 84 void SetExternalTilePriorityConstraints(
84 const gfx::Rect& viewport_rect, 85 const gfx::Rect& viewport_rect,
85 const gfx::Transform& transform) override; 86 const gfx::Transform& transform) override;
86 void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override; 87 void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override;
87 void SetTreeActivationCallback(const base::Closure& callback) override; 88 void SetTreeActivationCallback(const base::Closure& callback) override;
(...skipping 29 matching lines...) Expand all
117 scoped_ptr<DirectRenderer> renderer_; 118 scoped_ptr<DirectRenderer> renderer_;
118 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_; 119 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_;
119 std::vector<ui::LatencyInfo> stored_latency_info_; 120 std::vector<ui::LatencyInfo> stored_latency_info_;
120 121
121 DISALLOW_COPY_AND_ASSIGN(Display); 122 DISALLOW_COPY_AND_ASSIGN(Display);
122 }; 123 };
123 124
124 } // namespace cc 125 } // namespace cc
125 126
126 #endif // CC_SURFACES_DISPLAY_H_ 127 #endif // CC_SURFACES_DISPLAY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698