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

Side by Side Diff: services/ui/surfaces/display_output_surface_ozone.h

Issue 2873243002: Move components/display_compositor to components/viz/display_compositor (Closed)
Patch Set: Rebase Created 3 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
« no previous file with comments | « services/ui/surfaces/DEPS ('k') | services/ui/surfaces/display_output_surface_ozone.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 SERVICES_UI_SURFACES_DISPLAY_OUTPUT_SURFACE_OZONE_H_ 5 #ifndef SERVICES_UI_SURFACES_DISPLAY_OUTPUT_SURFACE_OZONE_H_
6 #define SERVICES_UI_SURFACES_DISPLAY_OUTPUT_SURFACE_OZONE_H_ 6 #define SERVICES_UI_SURFACES_DISPLAY_OUTPUT_SURFACE_OZONE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "cc/output/context_provider.h" 11 #include "cc/output/context_provider.h"
12 #include "cc/output/in_process_context_provider.h" 12 #include "cc/output/in_process_context_provider.h"
13 #include "cc/output/output_surface.h" 13 #include "cc/output/output_surface.h"
14 #include "components/display_compositor/gl_helper.h" 14 #include "components/viz/display_compositor/gl_helper.h"
15 #include "services/ui/surfaces/display_output_surface.h" 15 #include "services/ui/surfaces/display_output_surface.h"
16 #include "ui/gfx/geometry/size.h" 16 #include "ui/gfx/geometry/size.h"
17 #include "ui/gfx/native_widget_types.h" 17 #include "ui/gfx/native_widget_types.h"
18 #include "ui/gfx/swap_result.h" 18 #include "ui/gfx/swap_result.h"
19 #include "ui/gl/gl_surface.h" 19 #include "ui/gl/gl_surface.h"
20 20
21 namespace cc { 21 namespace cc {
22 class SyntheticBeginFrameSource; 22 class SyntheticBeginFrameSource;
23 } 23 }
24 24
25 namespace display_compositor { 25 namespace viz {
26 class BufferQueue; 26 class BufferQueue;
27 } 27 }
28 28
29 namespace gpu { 29 namespace gpu {
30 class GpuMemoryBufferManager; 30 class GpuMemoryBufferManager;
31 } 31 }
32 32
33 namespace ui { 33 namespace ui {
34 34
35 // An OutputSurface implementation that directly draws and swap to a GL 35 // An OutputSurface implementation that directly draws and swap to a GL
(...skipping 23 matching lines...) Expand all
59 bool has_alpha, 59 bool has_alpha,
60 bool use_stencil) override; 60 bool use_stencil) override;
61 void SwapBuffers(cc::OutputSurfaceFrame frame) override; 61 void SwapBuffers(cc::OutputSurfaceFrame frame) override;
62 uint32_t GetFramebufferCopyTextureFormat() override; 62 uint32_t GetFramebufferCopyTextureFormat() override;
63 bool IsDisplayedAsOverlayPlane() const override; 63 bool IsDisplayedAsOverlayPlane() const override;
64 unsigned GetOverlayTextureId() const override; 64 unsigned GetOverlayTextureId() const override;
65 65
66 // DisplayOutputSurface: 66 // DisplayOutputSurface:
67 void DidReceiveSwapBuffersAck(gfx::SwapResult result) override; 67 void DidReceiveSwapBuffersAck(gfx::SwapResult result) override;
68 68
69 display_compositor::GLHelper gl_helper_; 69 viz::GLHelper gl_helper_;
70 std::unique_ptr<display_compositor::BufferQueue> buffer_queue_; 70 std::unique_ptr<viz::BufferQueue> buffer_queue_;
71 71
72 gfx::Size reshape_size_; 72 gfx::Size reshape_size_;
73 gfx::Size swap_size_; 73 gfx::Size swap_size_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(DisplayOutputSurfaceOzone); 75 DISALLOW_COPY_AND_ASSIGN(DisplayOutputSurfaceOzone);
76 }; 76 };
77 77
78 } // namespace ui 78 } // namespace ui
79 79
80 #endif // SERVICES_UI_SURFACES_DISPLAY_OUTPUT_SURFACE_OZONE_H_ 80 #endif // SERVICES_UI_SURFACES_DISPLAY_OUTPUT_SURFACE_OZONE_H_
OLDNEW
« no previous file with comments | « services/ui/surfaces/DEPS ('k') | services/ui/surfaces/display_output_surface_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698