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

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

Issue 1113573002: Maintain minimal error response. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed build issue. Created 5 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
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
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| 102 // Note: |src_subset| is specified in DIP dimensions while |output_size|
103 // expects pixels. 103 // expects pixels.
104 void CopyFromCompositingSurface(const gfx::Rect& src_subrect, 104 void CopyFromCompositingSurface(const gfx::Rect& src_subrect,
105 const gfx::Size& output_size, 105 const gfx::Size& output_size,
106 ReadbackRequestCallback& callback, 106 ReadbackRequestCallback& callback,
107 const SkColorType color_type); 107 const SkColorType preferred_color_type);
108 void CopyFromCompositingSurfaceToVideoFrame( 108 void CopyFromCompositingSurfaceToVideoFrame(
109 const gfx::Rect& src_subrect, 109 const gfx::Rect& src_subrect,
110 const scoped_refptr<media::VideoFrame>& target, 110 const scoped_refptr<media::VideoFrame>& target,
111 const base::Callback<void(bool)>& callback); 111 const base::Callback<void(bool)>& callback);
112 bool CanCopyToVideoFrame() const; 112 bool CanCopyToVideoFrame() const;
113 bool CanSubscribeFrame() const; 113 bool CanSubscribeFrame() const;
114 void BeginFrameSubscription( 114 void BeginFrameSubscription(
115 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber); 115 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber);
116 void EndFrameSubscription(); 116 void EndFrameSubscription();
117 bool HasFrameSubscriber() const { return frame_subscriber_; } 117 bool HasFrameSubscriber() const { return frame_subscriber_; }
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 // YUV readback pipeline. 320 // YUV readback pipeline.
321 scoped_ptr<content::ReadbackYUVInterface> 321 scoped_ptr<content::ReadbackYUVInterface>
322 yuv_readback_pipeline_; 322 yuv_readback_pipeline_;
323 323
324 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 324 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
325 }; 325 };
326 326
327 } // namespace content 327 } // namespace content
328 328
329 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_ 329 #endif // CONTENT_BROWSER_COMPOSITOR_DELEGATED_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/compositor/delegated_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698