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

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

Issue 2369793002: WIP: Propagate SurfaceID up window tree hierarchy
Patch Set: Fix input events: EventDispatcher ignores container windows Created 4 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_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 const SkColorType preferred_color_type); 144 const SkColorType preferred_color_type);
145 void CopyFromCompositingSurfaceToVideoFrame( 145 void CopyFromCompositingSurfaceToVideoFrame(
146 const gfx::Rect& src_subrect, 146 const gfx::Rect& src_subrect,
147 const scoped_refptr<media::VideoFrame>& target, 147 const scoped_refptr<media::VideoFrame>& target,
148 const base::Callback<void(const gfx::Rect&, bool)>& callback); 148 const base::Callback<void(const gfx::Rect&, bool)>& callback);
149 bool CanCopyToVideoFrame() const; 149 bool CanCopyToVideoFrame() const;
150 void BeginFrameSubscription( 150 void BeginFrameSubscription(
151 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber); 151 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber);
152 void EndFrameSubscription(); 152 void EndFrameSubscription();
153 bool HasFrameSubscriber() const { return !!frame_subscriber_; } 153 bool HasFrameSubscriber() const { return !!frame_subscriber_; }
154 uint32_t GetSurfaceClientId(); 154 cc::FrameSinkId GetFrameSinkId();
155 // Returns a null SurfaceId if this DelegatedFrameHost has not yet created 155 // Returns a null SurfaceId if this DelegatedFrameHost has not yet created
156 // a compositor Surface. 156 // a compositor Surface.
157 cc::SurfaceId SurfaceIdAtPoint(cc::SurfaceHittestDelegate* delegate, 157 cc::SurfaceId SurfaceIdAtPoint(cc::SurfaceHittestDelegate* delegate,
158 const gfx::Point& point, 158 const gfx::Point& point,
159 gfx::Point* transformed_point); 159 gfx::Point* transformed_point);
160 160
161 // Given the SurfaceID of a Surface that is contained within this class' 161 // Given the SurfaceID of a Surface that is contained within this class'
162 // Surface, find the relative transform between the Surfaces and apply it 162 // Surface, find the relative transform between the Surfaces and apply it
163 // to a point. If a Surface has not yet been created this returns the 163 // to a point. If a Surface has not yet been created this returns the
164 // same point with no transform applied. 164 // same point with no transform applied.
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 // YUV readback pipeline. 328 // YUV readback pipeline.
329 std::unique_ptr<display_compositor::ReadbackYUVInterface> 329 std::unique_ptr<display_compositor::ReadbackYUVInterface>
330 yuv_readback_pipeline_; 330 yuv_readback_pipeline_;
331 331
332 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 332 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
333 }; 333 };
334 334
335 } // namespace content 335 } // namespace content
336 336
337 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ 337 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_widget_host_view_guest.cc ('k') | content/browser/renderer_host/delegated_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698