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

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

Issue 807853003: Use GLHelper support to validate format before processing texture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 12 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 static void CopyFromCompositingSurfaceFinishedForVideo( 203 static void CopyFromCompositingSurfaceFinishedForVideo(
204 base::WeakPtr<DelegatedFrameHost> rwhva, 204 base::WeakPtr<DelegatedFrameHost> rwhva,
205 const base::Callback<void(bool)>& callback, 205 const base::Callback<void(bool)>& callback,
206 scoped_refptr<OwnedMailbox> subscriber_texture, 206 scoped_refptr<OwnedMailbox> subscriber_texture,
207 scoped_ptr<cc::SingleReleaseCallback> release_callback, 207 scoped_ptr<cc::SingleReleaseCallback> release_callback,
208 bool result); 208 bool result);
209 static void ReturnSubscriberTexture( 209 static void ReturnSubscriberTexture(
210 base::WeakPtr<DelegatedFrameHost> rwhva, 210 base::WeakPtr<DelegatedFrameHost> rwhva,
211 scoped_refptr<OwnedMailbox> subscriber_texture, 211 scoped_refptr<OwnedMailbox> subscriber_texture,
212 uint32 sync_point); 212 uint32 sync_point);
213 static bool IsReadbackConfigSupported(SkColorType color_type);
213 214
214 void SendDelegatedFrameAck(uint32 output_surface_id); 215 void SendDelegatedFrameAck(uint32 output_surface_id);
215 void SurfaceDrawn(uint32 output_surface_id, bool drawn); 216 void SurfaceDrawn(uint32 output_surface_id, bool drawn);
216 void SendReturnedDelegatedResources(uint32 output_surface_id); 217 void SendReturnedDelegatedResources(uint32 output_surface_id);
217 218
218 // DelegatedFrameEvictorClient implementation. 219 // DelegatedFrameEvictorClient implementation.
219 void EvictDelegatedFrame() override; 220 void EvictDelegatedFrame() override;
220 221
221 // cc::DelegatedFrameProviderClient implementation. 222 // cc::DelegatedFrameProviderClient implementation.
222 void UnusedResourcesAreAvailable() override; 223 void UnusedResourcesAreAvailable() override;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 // YUV readback pipeline. 307 // YUV readback pipeline.
307 scoped_ptr<content::ReadbackYUVInterface> 308 scoped_ptr<content::ReadbackYUVInterface>
308 yuv_readback_pipeline_; 309 yuv_readback_pipeline_;
309 310
310 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 311 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
311 }; 312 };
312 313
313 } // namespace content 314 } // namespace content
314 315
315 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ 316 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/compositor/delegated_frame_host.cc » ('j') | content/browser/compositor/delegated_frame_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698