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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_child_frame.h

Issue 1304063014: cc: Plumbing for BeginFrameSource based on Surfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix webview Created 5 years, 2 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 CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/resources/returned_resource.h" 9 #include "cc/resources/returned_resource.h"
10 #include "cc/surfaces/surface_factory_client.h" 10 #include "cc/surfaces/surface_factory_client.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 #if defined(OS_WIN) 147 #if defined(OS_WIN)
148 void SetParentNativeViewAccessible( 148 void SetParentNativeViewAccessible(
149 gfx::NativeViewAccessible accessible_parent) override; 149 gfx::NativeViewAccessible accessible_parent) override;
150 gfx::NativeViewId GetParentForWindowlessPlugin() const override; 150 gfx::NativeViewId GetParentForWindowlessPlugin() const override;
151 #endif 151 #endif
152 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( 152 BrowserAccessibilityManager* CreateBrowserAccessibilityManager(
153 BrowserAccessibilityDelegate* delegate) override; 153 BrowserAccessibilityDelegate* delegate) override;
154 154
155 // cc::SurfaceFactoryClient implementation. 155 // cc::SurfaceFactoryClient implementation.
156 void ReturnResources(const cc::ReturnedResourceArray& resources) override; 156 void ReturnResources(const cc::ReturnedResourceArray& resources) override;
157 void SetBeginFrameSource(cc::SurfaceId surface_id,
158 cc::BeginFrameSource* begin_frame_source) override;
157 159
158 // Declared 'public' instead of 'protected' here to allow derived classes 160 // Declared 'public' instead of 'protected' here to allow derived classes
159 // to Bind() to it. 161 // to Bind() to it.
160 void SurfaceDrawn(uint32 output_surface_id, cc::SurfaceDrawStatus drawn); 162 void SurfaceDrawn(uint32 output_surface_id, cc::SurfaceDrawStatus drawn);
161 163
162 protected: 164 protected:
163 friend class RenderWidgetHostView; 165 friend class RenderWidgetHostView;
164 friend class RenderWidgetHostViewChildFrameTest; 166 friend class RenderWidgetHostViewChildFrameTest;
165 friend class RenderWidgetHostViewGuestSurfaceTest; 167 friend class RenderWidgetHostViewGuestSurfaceTest;
166 168
(...skipping 30 matching lines...) Expand all
197 } 199 }
198 200
199 private: 201 private:
200 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; 202 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_;
201 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); 203 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame);
202 }; 204 };
203 205
204 } // namespace content 206 } // namespace content
205 207
206 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 208 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
OLDNEW
« no previous file with comments | « content/browser/compositor/delegated_frame_host.cc ('k') | content/browser/frame_host/render_widget_host_view_child_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698