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

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

Issue 15058004: cc: Rename VSync to BeginFrame (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 years, 7 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 WebGraphicsContext3DCommandBufferImpl* context3d, 46 WebGraphicsContext3DCommandBufferImpl* context3d,
47 cc::SoftwareOutputDevice* software); 47 cc::SoftwareOutputDevice* software);
48 virtual ~CompositorOutputSurface(); 48 virtual ~CompositorOutputSurface();
49 49
50 // cc::OutputSurface implementation. 50 // cc::OutputSurface implementation.
51 virtual bool BindToClient(cc::OutputSurfaceClient* client) OVERRIDE; 51 virtual bool BindToClient(cc::OutputSurfaceClient* client) OVERRIDE;
52 virtual void SendFrameToParentCompositor(cc::CompositorFrame*) OVERRIDE; 52 virtual void SendFrameToParentCompositor(cc::CompositorFrame*) OVERRIDE;
53 virtual void PostSubBuffer(gfx::Rect rect, const cc::LatencyInfo&) OVERRIDE; 53 virtual void PostSubBuffer(gfx::Rect rect, const cc::LatencyInfo&) OVERRIDE;
54 virtual void SwapBuffers(const cc::LatencyInfo&) OVERRIDE; 54 virtual void SwapBuffers(const cc::LatencyInfo&) OVERRIDE;
55 #if defined(OS_ANDROID) 55 #if defined(OS_ANDROID)
56 virtual void EnableVSyncNotification(bool enable) OVERRIDE; 56 virtual void SetNeedsBeginFrame(bool enable) OVERRIDE;
57 #endif 57 #endif
58 58
59 // TODO(epenner): This seems out of place here and would be a better fit 59 // TODO(epenner): This seems out of place here and would be a better fit
60 // int CompositorThread after it is fully refactored (http://crbug/170828) 60 // int CompositorThread after it is fully refactored (http://crbug/170828)
61 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) OVERRIDE; 61 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) OVERRIDE;
62 62
63 protected: 63 protected:
64 virtual void OnSwapAck(const cc::CompositorFrameAck& ack); 64 virtual void OnSwapAck(const cc::CompositorFrameAck& ack);
65 65
66 private: 66 private:
(...skipping 14 matching lines...) Expand all
81 ~CompositorOutputSurfaceProxy() {} 81 ~CompositorOutputSurfaceProxy() {}
82 CompositorOutputSurface* output_surface_; 82 CompositorOutputSurface* output_surface_;
83 83
84 DISALLOW_COPY_AND_ASSIGN(CompositorOutputSurfaceProxy); 84 DISALLOW_COPY_AND_ASSIGN(CompositorOutputSurfaceProxy);
85 }; 85 };
86 86
87 void OnMessageReceived(const IPC::Message& message); 87 void OnMessageReceived(const IPC::Message& message);
88 void OnUpdateVSyncParameters( 88 void OnUpdateVSyncParameters(
89 base::TimeTicks timebase, base::TimeDelta interval); 89 base::TimeTicks timebase, base::TimeDelta interval);
90 #if defined(OS_ANDROID) 90 #if defined(OS_ANDROID)
91 void OnDidVSync(base::TimeTicks frame_time); 91 void OnBeginFrame(base::TimeTicks frame_time);
92 #endif 92 #endif
93 bool Send(IPC::Message* message); 93 bool Send(IPC::Message* message);
94 94
95 scoped_refptr<IPC::ForwardingMessageFilter> output_surface_filter_; 95 scoped_refptr<IPC::ForwardingMessageFilter> output_surface_filter_;
96 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_; 96 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_;
97 scoped_refptr<IPC::SyncMessageFilter> message_sender_; 97 scoped_refptr<IPC::SyncMessageFilter> message_sender_;
98 int routing_id_; 98 int routing_id_;
99 bool prefers_smoothness_; 99 bool prefers_smoothness_;
100 base::PlatformThreadId main_thread_id_; 100 base::PlatformThreadId main_thread_id_;
101 }; 101 };
102 102
103 } // namespace content 103 } // namespace content
104 104
105 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ 105 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « content/renderer/android/synchronous_compositor_output_surface.cc ('k') | content/renderer/gpu/compositor_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698