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

Side by Side Diff: content/renderer/gpu/compositor_output_surface.h

Issue 218633010: cc: Handle retroactive BeginFrames in the Scheduler. (Closed) Base URL: http://git.chromium.org/chromium/src.git@compositorVsyncDisable
Patch Set: rebase on pending patches Created 6 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ 6 #define CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 uint32 output_surface_id, 47 uint32 output_surface_id,
48 const scoped_refptr<ContextProviderCommandBuffer>& context_provider, 48 const scoped_refptr<ContextProviderCommandBuffer>& context_provider,
49 scoped_ptr<cc::SoftwareOutputDevice> software, 49 scoped_ptr<cc::SoftwareOutputDevice> software,
50 bool use_swap_compositor_frame_message); 50 bool use_swap_compositor_frame_message);
51 virtual ~CompositorOutputSurface(); 51 virtual ~CompositorOutputSurface();
52 52
53 // cc::OutputSurface implementation. 53 // cc::OutputSurface implementation.
54 virtual bool BindToClient(cc::OutputSurfaceClient* client) OVERRIDE; 54 virtual bool BindToClient(cc::OutputSurfaceClient* client) OVERRIDE;
55 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE; 55 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE;
56 #if defined(OS_ANDROID) 56 #if defined(OS_ANDROID)
57 virtual void SetNeedsBeginImplFrame(bool enable) OVERRIDE; 57 virtual void SetNeedsBeginFrame(bool enable) OVERRIDE;
58 #endif 58 #endif
59 59
60 // TODO(epenner): This seems out of place here and would be a better fit 60 // TODO(epenner): This seems out of place here and would be a better fit
61 // int CompositorThread after it is fully refactored (http://crbug/170828) 61 // int CompositorThread after it is fully refactored (http://crbug/170828)
62 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) OVERRIDE; 62 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) OVERRIDE;
63 63
64 protected: 64 protected:
65 virtual void OnSwapAck(uint32 output_surface_id, 65 virtual void OnSwapAck(uint32 output_surface_id,
66 const cc::CompositorFrameAck& ack); 66 const cc::CompositorFrameAck& ack);
67 virtual void OnReclaimResources(uint32 output_surface_id, 67 virtual void OnReclaimResources(uint32 output_surface_id,
(...skipping 18 matching lines...) Expand all
86 ~CompositorOutputSurfaceProxy() {} 86 ~CompositorOutputSurfaceProxy() {}
87 CompositorOutputSurface* output_surface_; 87 CompositorOutputSurface* output_surface_;
88 88
89 DISALLOW_COPY_AND_ASSIGN(CompositorOutputSurfaceProxy); 89 DISALLOW_COPY_AND_ASSIGN(CompositorOutputSurfaceProxy);
90 }; 90 };
91 91
92 void OnMessageReceived(const IPC::Message& message); 92 void OnMessageReceived(const IPC::Message& message);
93 void OnUpdateVSyncParametersFromBrowser(base::TimeTicks timebase, 93 void OnUpdateVSyncParametersFromBrowser(base::TimeTicks timebase,
94 base::TimeDelta interval); 94 base::TimeDelta interval);
95 #if defined(OS_ANDROID) 95 #if defined(OS_ANDROID)
96 void OnBeginImplFrame(const cc::BeginFrameArgs& args); 96 void OnBeginFrame(const cc::BeginFrameArgs& args);
97 #endif 97 #endif
98 bool Send(IPC::Message* message); 98 bool Send(IPC::Message* message);
99 99
100 bool use_swap_compositor_frame_message_; 100 bool use_swap_compositor_frame_message_;
101 101
102 scoped_refptr<IPC::ForwardingMessageFilter> output_surface_filter_; 102 scoped_refptr<IPC::ForwardingMessageFilter> output_surface_filter_;
103 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_; 103 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_;
104 scoped_refptr<IPC::SyncMessageFilter> message_sender_; 104 scoped_refptr<IPC::SyncMessageFilter> message_sender_;
105 int routing_id_; 105 int routing_id_;
106 bool prefers_smoothness_; 106 bool prefers_smoothness_;
107 base::PlatformThreadHandle main_thread_handle_; 107 base::PlatformThreadHandle main_thread_handle_;
108 }; 108 };
109 109
110 } // namespace content 110 } // namespace content
111 111
112 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ 112 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698