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

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

Issue 2129523003: Remove more GpuMemoryBufferId plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « cc/surfaces/surface_factory.cc ('k') | content/browser/renderer_host/delegated_frame_host.cc » ('j') | no next file with comments »
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_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 class DelegatedFrameHost; 49 class DelegatedFrameHost;
50 class RenderWidgetHostViewFrameSubscriber; 50 class RenderWidgetHostViewFrameSubscriber;
51 class RenderWidgetHostImpl; 51 class RenderWidgetHostImpl;
52 class ResizeLock; 52 class ResizeLock;
53 53
54 // The DelegatedFrameHostClient is the interface from the DelegatedFrameHost, 54 // The DelegatedFrameHostClient is the interface from the DelegatedFrameHost,
55 // which manages delegated frames, and the ui::Compositor being used to 55 // which manages delegated frames, and the ui::Compositor being used to
56 // display them. 56 // display them.
57 class CONTENT_EXPORT DelegatedFrameHostClient { 57 class CONTENT_EXPORT DelegatedFrameHostClient {
58 public: 58 public:
59 virtual int DelegatedFrameHostGetGpuMemoryBufferClientId() const = 0;
60 virtual ui::Layer* DelegatedFrameHostGetLayer() const = 0; 59 virtual ui::Layer* DelegatedFrameHostGetLayer() const = 0;
61 virtual bool DelegatedFrameHostIsVisible() const = 0; 60 virtual bool DelegatedFrameHostIsVisible() const = 0;
62 61
63 // Returns the color that the resize gutters should be drawn with. Takes the 62 // Returns the color that the resize gutters should be drawn with. Takes the
64 // suggested color from the current page background. 63 // suggested color from the current page background.
65 virtual SkColor DelegatedFrameHostGetGutterColor(SkColor color) const = 0; 64 virtual SkColor DelegatedFrameHostGetGutterColor(SkColor color) const = 0;
66 virtual gfx::Size DelegatedFrameHostDesiredSizeInDIP() const = 0; 65 virtual gfx::Size DelegatedFrameHostDesiredSizeInDIP() const = 0;
67 66
68 virtual bool DelegatedFrameCanCreateResizeLock() const = 0; 67 virtual bool DelegatedFrameCanCreateResizeLock() const = 0;
69 virtual std::unique_ptr<ResizeLock> DelegatedFrameHostCreateResizeLock( 68 virtual std::unique_ptr<ResizeLock> DelegatedFrameHostCreateResizeLock(
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 // YUV readback pipeline. 327 // YUV readback pipeline.
329 std::unique_ptr<display_compositor::ReadbackYUVInterface> 328 std::unique_ptr<display_compositor::ReadbackYUVInterface>
330 yuv_readback_pipeline_; 329 yuv_readback_pipeline_;
331 330
332 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 331 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
333 }; 332 };
334 333
335 } // namespace content 334 } // namespace content
336 335
337 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ 336 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « cc/surfaces/surface_factory.cc ('k') | content/browser/renderer_host/delegated_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698