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

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

Issue 1028393003: [Thumbnails] Specify copy size in Pixels, not DIPs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: correct rebase Created 5 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
« no previous file with comments | « chrome/browser/thumbnails/thumbnailing_algorithm.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 scoped_ptr<cc::DelegatedFrameData> frame_data, 92 scoped_ptr<cc::DelegatedFrameData> frame_data,
93 float frame_device_scale_factor, 93 float frame_device_scale_factor,
94 const std::vector<ui::LatencyInfo>& latency_info); 94 const std::vector<ui::LatencyInfo>& latency_info);
95 void WasHidden(); 95 void WasHidden();
96 void WasShown(const ui::LatencyInfo& latency_info); 96 void WasShown(const ui::LatencyInfo& latency_info);
97 void WasResized(); 97 void WasResized();
98 bool HasSavedFrame(); 98 bool HasSavedFrame();
99 gfx::Size GetRequestedRendererSize() const; 99 gfx::Size GetRequestedRendererSize() const;
100 void SetCompositor(ui::Compositor* compositor); 100 void SetCompositor(ui::Compositor* compositor);
101 void ResetCompositor(); 101 void ResetCompositor();
102 // Note: |src_subset| is specified in DIP dimensions while |output_size|
103 // expects pixels.
102 void CopyFromCompositingSurface(const gfx::Rect& src_subrect, 104 void CopyFromCompositingSurface(const gfx::Rect& src_subrect,
103 const gfx::Size& output_size, 105 const gfx::Size& output_size,
104 ReadbackRequestCallback& callback, 106 ReadbackRequestCallback& callback,
105 const SkColorType color_type); 107 const SkColorType color_type);
106 void CopyFromCompositingSurfaceToVideoFrame( 108 void CopyFromCompositingSurfaceToVideoFrame(
107 const gfx::Rect& src_subrect, 109 const gfx::Rect& src_subrect,
108 const scoped_refptr<media::VideoFrame>& target, 110 const scoped_refptr<media::VideoFrame>& target,
109 const base::Callback<void(bool)>& callback); 111 const base::Callback<void(bool)>& callback);
110 bool CanCopyToVideoFrame() const; 112 bool CanCopyToVideoFrame() const;
111 bool CanSubscribeFrame() const; 113 bool CanSubscribeFrame() const;
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 // YUV readback pipeline. 318 // YUV readback pipeline.
317 scoped_ptr<content::ReadbackYUVInterface> 319 scoped_ptr<content::ReadbackYUVInterface>
318 yuv_readback_pipeline_; 320 yuv_readback_pipeline_;
319 321
320 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 322 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
321 }; 323 };
322 324
323 } // namespace content 325 } // namespace content
324 326
325 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ 327 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/thumbnails/thumbnailing_algorithm.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698