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

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

Issue 299443003: Restore resize throttling on Chrome OS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 // Public interface exposed to RenderWidgetHostView. 82 // Public interface exposed to RenderWidgetHostView.
83 void SwapDelegatedFrame( 83 void SwapDelegatedFrame(
84 uint32 output_surface_id, 84 uint32 output_surface_id,
85 scoped_ptr<cc::DelegatedFrameData> frame_data, 85 scoped_ptr<cc::DelegatedFrameData> frame_data,
86 float frame_device_scale_factor, 86 float frame_device_scale_factor,
87 const std::vector<ui::LatencyInfo>& latency_info); 87 const std::vector<ui::LatencyInfo>& latency_info);
88 void WasHidden(); 88 void WasHidden();
89 void WasShown(); 89 void WasShown();
90 void WasResized(); 90 void WasResized();
91 gfx::Size GetRequestedRendererSize() const;
danakj 2014/05/20 19:28:56 s/Get//?
91 void AddedToWindow(); 92 void AddedToWindow();
92 void RemovingFromWindow(); 93 void RemovingFromWindow();
93 void CopyFromCompositingSurface( 94 void CopyFromCompositingSurface(
94 const gfx::Rect& src_subrect, 95 const gfx::Rect& src_subrect,
95 const gfx::Size& dst_size, 96 const gfx::Size& dst_size,
96 const base::Callback<void(bool, const SkBitmap&)>& callback, 97 const base::Callback<void(bool, const SkBitmap&)>& callback,
97 const SkBitmap::Config config); 98 const SkBitmap::Config config);
98 void CopyFromCompositingSurfaceToVideoFrame( 99 void CopyFromCompositingSurfaceToVideoFrame(
99 const gfx::Rect& src_subrect, 100 const gfx::Rect& src_subrect,
100 const scoped_refptr<media::VideoFrame>& target, 101 const scoped_refptr<media::VideoFrame>& target,
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // YUV readback pipeline. 278 // YUV readback pipeline.
278 scoped_ptr<content::ReadbackYUVInterface> 279 scoped_ptr<content::ReadbackYUVInterface>
279 yuv_readback_pipeline_; 280 yuv_readback_pipeline_;
280 281
281 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 282 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
282 }; 283 };
283 284
284 } // namespace content 285 } // namespace content
285 286
286 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ 287 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698