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

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

Issue 374633002: SkBitmap::Config is deprecated, use SkColorType instead (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments from #4 Created 6 years, 5 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 void WasHidden(); 88 void WasHidden();
89 void WasShown(); 89 void WasShown();
90 void WasResized(); 90 void WasResized();
91 gfx::Size GetRequestedRendererSize() const; 91 gfx::Size GetRequestedRendererSize() const;
92 void AddedToWindow(); 92 void AddedToWindow();
93 void RemovingFromWindow(); 93 void RemovingFromWindow();
94 void CopyFromCompositingSurface( 94 void CopyFromCompositingSurface(
95 const gfx::Rect& src_subrect, 95 const gfx::Rect& src_subrect,
96 const gfx::Size& dst_size, 96 const gfx::Size& dst_size,
97 const base::Callback<void(bool, const SkBitmap&)>& callback, 97 const base::Callback<void(bool, const SkBitmap&)>& callback,
98 const SkBitmap::Config config); 98 const SkColorType color_type);
99 void CopyFromCompositingSurfaceToVideoFrame( 99 void CopyFromCompositingSurfaceToVideoFrame(
100 const gfx::Rect& src_subrect, 100 const gfx::Rect& src_subrect,
101 const scoped_refptr<media::VideoFrame>& target, 101 const scoped_refptr<media::VideoFrame>& target,
102 const base::Callback<void(bool)>& callback); 102 const base::Callback<void(bool)>& callback);
103 bool CanCopyToVideoFrame() const; 103 bool CanCopyToVideoFrame() const;
104 bool CanSubscribeFrame() const; 104 bool CanSubscribeFrame() const;
105 void BeginFrameSubscription( 105 void BeginFrameSubscription(
106 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber); 106 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber);
107 void EndFrameSubscription(); 107 void EndFrameSubscription();
108 108
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // Run all on compositing commit callbacks. 165 // Run all on compositing commit callbacks.
166 void RunOnCommitCallbacks(); 166 void RunOnCommitCallbacks();
167 167
168 // Add on compositing commit callback. 168 // Add on compositing commit callback.
169 void AddOnCommitCallbackAndDisableLocks(const base::Closure& callback); 169 void AddOnCommitCallbackAndDisableLocks(const base::Closure& callback);
170 170
171 // Called after async thumbnailer task completes. Scales and crops the result 171 // Called after async thumbnailer task completes. Scales and crops the result
172 // of the copy. 172 // of the copy.
173 static void CopyFromCompositingSurfaceHasResult( 173 static void CopyFromCompositingSurfaceHasResult(
174 const gfx::Size& dst_size_in_pixel, 174 const gfx::Size& dst_size_in_pixel,
175 const SkBitmap::Config config, 175 const SkColorType color_type,
176 const base::Callback<void(bool, const SkBitmap&)>& callback, 176 const base::Callback<void(bool, const SkBitmap&)>& callback,
177 scoped_ptr<cc::CopyOutputResult> result); 177 scoped_ptr<cc::CopyOutputResult> result);
178 static void PrepareTextureCopyOutputResult( 178 static void PrepareTextureCopyOutputResult(
179 const gfx::Size& dst_size_in_pixel, 179 const gfx::Size& dst_size_in_pixel,
180 const SkBitmap::Config config, 180 const SkColorType color_type,
181 const base::Callback<void(bool, const SkBitmap&)>& callback, 181 const base::Callback<void(bool, const SkBitmap&)>& callback,
182 scoped_ptr<cc::CopyOutputResult> result); 182 scoped_ptr<cc::CopyOutputResult> result);
183 static void PrepareBitmapCopyOutputResult( 183 static void PrepareBitmapCopyOutputResult(
184 const gfx::Size& dst_size_in_pixel, 184 const gfx::Size& dst_size_in_pixel,
185 const SkBitmap::Config config, 185 const SkColorType color_type,
186 const base::Callback<void(bool, const SkBitmap&)>& callback, 186 const base::Callback<void(bool, const SkBitmap&)>& callback,
187 scoped_ptr<cc::CopyOutputResult> result); 187 scoped_ptr<cc::CopyOutputResult> result);
188 static void CopyFromCompositingSurfaceHasResultForVideo( 188 static void CopyFromCompositingSurfaceHasResultForVideo(
189 base::WeakPtr<DelegatedFrameHost> rwhva, 189 base::WeakPtr<DelegatedFrameHost> rwhva,
190 scoped_refptr<OwnedMailbox> subscriber_texture, 190 scoped_refptr<OwnedMailbox> subscriber_texture,
191 scoped_refptr<media::VideoFrame> video_frame, 191 scoped_refptr<media::VideoFrame> video_frame,
192 const base::Callback<void(bool)>& callback, 192 const base::Callback<void(bool)>& callback,
193 scoped_ptr<cc::CopyOutputResult> result); 193 scoped_ptr<cc::CopyOutputResult> result);
194 static void CopyFromCompositingSurfaceFinishedForVideo( 194 static void CopyFromCompositingSurfaceFinishedForVideo(
195 base::WeakPtr<DelegatedFrameHost> rwhva, 195 base::WeakPtr<DelegatedFrameHost> rwhva,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 // YUV readback pipeline. 276 // YUV readback pipeline.
277 scoped_ptr<content::ReadbackYUVInterface> 277 scoped_ptr<content::ReadbackYUVInterface>
278 yuv_readback_pipeline_; 278 yuv_readback_pipeline_;
279 279
280 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 280 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
281 }; 281 };
282 282
283 } // namespace content 283 } // namespace content
284 284
285 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ 285 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698