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

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

Issue 2647363002: mus: Remove aura version of WindowCompositorFrameSink. (Closed)
Patch Set: tot merge Created 3 years, 11 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 | « no previous file | content/browser/compositor/mus_browser_compositor_output_surface.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_MUS_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_MUS_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_BROWSER_COMPOSITOR_MUS_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_MUS_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "cc/output/compositor_frame_sink_client.h" 12 #include "cc/output/compositor_frame_sink_client.h"
13 #include "content/browser/compositor/gpu_browser_compositor_output_surface.h" 13 #include "content/browser/compositor/gpu_browser_compositor_output_surface.h"
14 #include "gpu/command_buffer/common/mailbox.h" 14 #include "gpu/command_buffer/common/mailbox.h"
15 #include "gpu/ipc/common/surface_handle.h" 15 #include "gpu/ipc/common/surface_handle.h"
16 16
17 namespace aura { 17 namespace aura {
18 class Window; 18 class Window;
19 class WindowCompositorFrameSink;
20 } 19 }
21 20
22 namespace gpu { 21 namespace gpu {
23 class GpuMemoryBufferManager; 22 class GpuMemoryBufferManager;
24 } 23 }
25 24
25 namespace ui {
26 class WindowCompositorFrameSink;
27 }
28
26 namespace content { 29 namespace content {
27 30
28 // Adapts a WebGraphicsContext3DCommandBufferImpl into a 31 // Adapts a WebGraphicsContext3DCommandBufferImpl into a
29 // cc::OutputSurface that also handles vsync parameter updates 32 // cc::OutputSurface that also handles vsync parameter updates
30 // arriving from the GPU process. 33 // arriving from the GPU process.
31 class MusBrowserCompositorOutputSurface 34 class MusBrowserCompositorOutputSurface
32 : public GpuBrowserCompositorOutputSurface, 35 : public GpuBrowserCompositorOutputSurface,
33 public cc::CompositorFrameSinkClient { 36 public cc::CompositorFrameSinkClient {
34 public: 37 public:
35 MusBrowserCompositorOutputSurface( 38 MusBrowserCompositorOutputSurface(
(...skipping 25 matching lines...) Expand all
61 void SetExternalTilePriorityConstraints( 64 void SetExternalTilePriorityConstraints(
62 const gfx::Rect& viewport_rect, 65 const gfx::Rect& viewport_rect,
63 const gfx::Transform& transform) override; 66 const gfx::Transform& transform) override;
64 67
65 private: 68 private:
66 uint32_t AllocateResourceId(); 69 uint32_t AllocateResourceId();
67 void FreeResourceId(uint32_t id); 70 void FreeResourceId(uint32_t id);
68 const gpu::Mailbox& GetMailboxFromResourceId(uint32_t id); 71 const gpu::Mailbox& GetMailboxFromResourceId(uint32_t id);
69 72
70 aura::Window* window_; 73 aura::Window* window_;
71 std::unique_ptr<aura::WindowCompositorFrameSink> compositor_frame_sink_; 74 std::unique_ptr<ui::WindowCompositorFrameSink> compositor_frame_sink_;
72 std::vector<uint32_t> free_resource_ids_; 75 std::vector<uint32_t> free_resource_ids_;
73 std::vector<gpu::Mailbox> mailboxes_; 76 std::vector<gpu::Mailbox> mailboxes_;
74 cc::BeginFrameSource* begin_frame_source_; 77 cc::BeginFrameSource* begin_frame_source_;
75 78
76 DISALLOW_COPY_AND_ASSIGN(MusBrowserCompositorOutputSurface); 79 DISALLOW_COPY_AND_ASSIGN(MusBrowserCompositorOutputSurface);
77 }; 80 };
78 81
79 } // namespace content 82 } // namespace content
80 83
81 #endif // CONTENT_BROWSER_COMPOSITOR_MUS_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 84 #endif // CONTENT_BROWSER_COMPOSITOR_MUS_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/compositor/mus_browser_compositor_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698