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

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

Issue 464643003: Stop painting when receiving delegated frame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | content/browser/compositor/delegated_frame_host.cc » ('j') | ui/aura/window.cc » ('J')
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 28 matching lines...) Expand all
39 class ResizeLock; 39 class ResizeLock;
40 40
41 // The DelegatedFrameHostClient is the interface from the DelegatedFrameHost, 41 // The DelegatedFrameHostClient is the interface from the DelegatedFrameHost,
42 // which manages delegated frames, and the ui::Compositor being used to 42 // which manages delegated frames, and the ui::Compositor being used to
43 // display them. 43 // display them.
44 class CONTENT_EXPORT DelegatedFrameHostClient { 44 class CONTENT_EXPORT DelegatedFrameHostClient {
45 public: 45 public:
46 virtual ui::Compositor* GetCompositor() const = 0; 46 virtual ui::Compositor* GetCompositor() const = 0;
47 virtual ui::Layer* GetLayer() = 0; 47 virtual ui::Layer* GetLayer() = 0;
48 virtual RenderWidgetHostImpl* GetHost() = 0; 48 virtual RenderWidgetHostImpl* GetHost() = 0;
49 virtual void SchedulePaintInRect(const gfx::Rect& damage_rect_in_dip) = 0; 49 virtual void NotifyDamage(const gfx::Rect& damage_rect_in_dip) = 0;
50 virtual bool IsVisible() = 0; 50 virtual bool IsVisible() = 0;
51 virtual scoped_ptr<ResizeLock> CreateResizeLock( 51 virtual scoped_ptr<ResizeLock> CreateResizeLock(
52 bool defer_compositor_lock) = 0; 52 bool defer_compositor_lock) = 0;
53 virtual gfx::Size DesiredFrameSize() = 0; 53 virtual gfx::Size DesiredFrameSize() = 0;
54 54
55 // TODO(ccameron): It is likely that at least one of these two functions is 55 // TODO(ccameron): It is likely that at least one of these two functions is
56 // redundant. Find which one, and delete it. 56 // redundant. Find which one, and delete it.
57 virtual float CurrentDeviceScaleFactor() = 0; 57 virtual float CurrentDeviceScaleFactor() = 0;
58 virtual gfx::Size ConvertViewSizeToPixel(const gfx::Size& size) = 0; 58 virtual gfx::Size ConvertViewSizeToPixel(const gfx::Size& size) = 0;
59 59
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 // YUV readback pipeline. 307 // YUV readback pipeline.
308 scoped_ptr<content::ReadbackYUVInterface> 308 scoped_ptr<content::ReadbackYUVInterface>
309 yuv_readback_pipeline_; 309 yuv_readback_pipeline_;
310 310
311 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 311 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
312 }; 312 };
313 313
314 } // namespace content 314 } // namespace content
315 315
316 #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') | ui/aura/window.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698