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

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

Issue 1989453003: cc: Add ScopedReadLockGpuMemoryBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix aura typo Created 4 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_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;
59 virtual ui::Layer* DelegatedFrameHostGetLayer() const = 0; 60 virtual ui::Layer* DelegatedFrameHostGetLayer() const = 0;
60 virtual bool DelegatedFrameHostIsVisible() const = 0; 61 virtual bool DelegatedFrameHostIsVisible() const = 0;
61 62
62 // Returns the color that the resize gutters should be drawn with. Takes the 63 // Returns the color that the resize gutters should be drawn with. Takes the
63 // suggested color from the current page background. 64 // suggested color from the current page background.
64 virtual SkColor DelegatedFrameHostGetGutterColor(SkColor color) const = 0; 65 virtual SkColor DelegatedFrameHostGetGutterColor(SkColor color) const = 0;
65 virtual gfx::Size DelegatedFrameHostDesiredSizeInDIP() const = 0; 66 virtual gfx::Size DelegatedFrameHostDesiredSizeInDIP() const = 0;
66 67
67 virtual bool DelegatedFrameCanCreateResizeLock() const = 0; 68 virtual bool DelegatedFrameCanCreateResizeLock() const = 0;
68 virtual std::unique_ptr<ResizeLock> DelegatedFrameHostCreateResizeLock( 69 virtual std::unique_ptr<ResizeLock> DelegatedFrameHostCreateResizeLock(
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 // YUV readback pipeline. 327 // YUV readback pipeline.
327 std::unique_ptr<display_compositor::ReadbackYUVInterface> 328 std::unique_ptr<display_compositor::ReadbackYUVInterface>
328 yuv_readback_pipeline_; 329 yuv_readback_pipeline_;
329 330
330 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 331 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
331 }; 332 };
332 333
333 } // namespace content 334 } // namespace content
334 335
335 #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/test/test_gpu_memory_buffer_manager.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