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

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

Issue 1265013003: Adds support for hittesting points on surface quads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comments Created 5 years, 4 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_COMPOSITOR_DELEGATED_FRAME_HOST_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_
6 #define CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_
7 7
8 #include "cc/layers/delegated_frame_provider.h" 8 #include "cc/layers/delegated_frame_provider.h"
9 #include "cc/layers/delegated_frame_resource_collection.h" 9 #include "cc/layers/delegated_frame_resource_collection.h"
10 #include "cc/output/copy_output_result.h" 10 #include "cc/output/copy_output_result.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(bool)>& callback); 148 const base::Callback<void(bool)>& callback);
149 bool CanCopyToVideoFrame() const; 149 bool CanCopyToVideoFrame() const;
150 bool CanSubscribeFrame() const; 150 bool CanSubscribeFrame() const;
151 void BeginFrameSubscription( 151 void BeginFrameSubscription(
152 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber); 152 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber);
153 void EndFrameSubscription(); 153 void EndFrameSubscription();
154 bool HasFrameSubscriber() const { return frame_subscriber_; } 154 bool HasFrameSubscriber() const { return frame_subscriber_; }
155 uint32_t GetSurfaceIdNamespace(); 155 uint32_t GetSurfaceIdNamespace();
156 cc::SurfaceId SurfaceIdAtPoint(const gfx::Point& point,
157 gfx::Point* transformed_point);
156 158
157 // Exposed for tests. 159 // Exposed for tests.
158 cc::DelegatedFrameProvider* FrameProviderForTesting() const { 160 cc::DelegatedFrameProvider* FrameProviderForTesting() const {
159 return frame_provider_.get(); 161 return frame_provider_.get();
160 } 162 }
161 cc::SurfaceId SurfaceIdForTesting() const { return surface_id_; } 163 cc::SurfaceId SurfaceIdForTesting() const { return surface_id_; }
162 void OnCompositingDidCommitForTesting(ui::Compositor* compositor) { 164 void OnCompositingDidCommitForTesting(ui::Compositor* compositor) {
163 OnCompositingDidCommit(compositor); 165 OnCompositingDidCommit(compositor);
164 } 166 }
165 bool ReleasedFrontLockActiveForTesting() const { 167 bool ReleasedFrontLockActiveForTesting() const {
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 // YUV readback pipeline. 334 // YUV readback pipeline.
333 scoped_ptr<content::ReadbackYUVInterface> 335 scoped_ptr<content::ReadbackYUVInterface>
334 yuv_readback_pipeline_; 336 yuv_readback_pipeline_;
335 337
336 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 338 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
337 }; 339 };
338 340
339 } // namespace content 341 } // namespace content
340 342
341 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ 343 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « cc/surfaces/surface_hittest_unittest.cc ('k') | content/browser/compositor/delegated_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698