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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 11959036: Implement vsync notification on Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 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 | 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; 106 virtual void OnAcceleratedCompositingStateChange() OVERRIDE;
107 virtual void AcceleratedSurfaceBuffersSwapped( 107 virtual void AcceleratedSurfaceBuffersSwapped(
108 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, 108 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
109 int gpu_host_id) OVERRIDE; 109 int gpu_host_id) OVERRIDE;
110 virtual void AcceleratedSurfacePostSubBuffer( 110 virtual void AcceleratedSurfacePostSubBuffer(
111 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, 111 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
112 int gpu_host_id) OVERRIDE; 112 int gpu_host_id) OVERRIDE;
113 virtual void AcceleratedSurfaceSuspend() OVERRIDE; 113 virtual void AcceleratedSurfaceSuspend() OVERRIDE;
114 virtual void AcceleratedSurfaceRelease() OVERRIDE; 114 virtual void AcceleratedSurfaceRelease() OVERRIDE;
115 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; 115 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE;
116 virtual void SetVSyncNotificationEnabled(bool enabled) OVERRIDE;
116 virtual void SetBackground(const SkBitmap& background) OVERRIDE; 117 virtual void SetBackground(const SkBitmap& background) OVERRIDE;
117 virtual void CopyFromCompositingSurface( 118 virtual void CopyFromCompositingSurface(
118 const gfx::Rect& src_subrect, 119 const gfx::Rect& src_subrect,
119 const gfx::Size& dst_size, 120 const gfx::Size& dst_size,
120 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; 121 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE;
121 virtual void CopyFromCompositingSurfaceToVideoFrame( 122 virtual void CopyFromCompositingSurfaceToVideoFrame(
122 const gfx::Rect& src_subrect, 123 const gfx::Rect& src_subrect,
123 const scoped_refptr<media::VideoFrame>& target, 124 const scoped_refptr<media::VideoFrame>& target,
124 const base::Callback<void(bool)>& callback) OVERRIDE; 125 const base::Callback<void(bool)>& callback) OVERRIDE;
125 virtual bool CanCopyToVideoFrame() const OVERRIDE; 126 virtual bool CanCopyToVideoFrame() const OVERRIDE;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 225
225 // The mailbox of the previously received frame. 226 // The mailbox of the previously received frame.
226 gpu::Mailbox current_mailbox_; 227 gpu::Mailbox current_mailbox_;
227 228
228 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 229 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
229 }; 230 };
230 231
231 } // namespace content 232 } // namespace content
232 233
233 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 234 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698