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

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

Issue 138903025: Read compositor VSync information from platform, when possible (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 287efe04 Rebase, oshima@ nits. Created 6 years, 10 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 | Annotate | Revision Log
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 private: 84 private:
85 friend class base::RefCountedThreadSafe<CompositorOutputSurfaceProxy>; 85 friend class base::RefCountedThreadSafe<CompositorOutputSurfaceProxy>;
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 OnUpdateVSyncParameters( 93 void OnUpdateVSyncParametersFromBrowser(base::TimeTicks timebase,
94 base::TimeTicks timebase, 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 OnBeginImplFrame(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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | content/renderer/gpu/compositor_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698