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

Side by Side Diff: components/mus/surfaces/direct_output_surface_ozone.h

Issue 2102203003: Color: Plumb color profile from ui::Compositor to cc::DirectRenderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on top of s/ColorProfile/ColorSpace/ 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
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 COMPONENTS_MUS_SURFACES_DIRECT_OUTPUT_SURFACE_OZONE_H_ 5 #ifndef COMPONENTS_MUS_SURFACES_DIRECT_OUTPUT_SURFACE_OZONE_H_
6 #define COMPONENTS_MUS_SURFACES_DIRECT_OUTPUT_SURFACE_OZONE_H_ 6 #define COMPONENTS_MUS_SURFACES_DIRECT_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"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 ~DirectOutputSurfaceOzone() override; 50 ~DirectOutputSurfaceOzone() override;
51 51
52 // TODO(rjkroege): Implement the equivalent of Reflector. 52 // TODO(rjkroege): Implement the equivalent of Reflector.
53 53
54 private: 54 private:
55 // cc::OutputSurface implementation. 55 // cc::OutputSurface implementation.
56 void SwapBuffers(cc::CompositorFrame frame) override; 56 void SwapBuffers(cc::CompositorFrame frame) override;
57 void BindFramebuffer() override; 57 void BindFramebuffer() override;
58 uint32_t GetFramebufferCopyTextureFormat() override; 58 uint32_t GetFramebufferCopyTextureFormat() override;
59 void Reshape(const gfx::Size& size, float scale_factor, bool alpha) override; 59 void Reshape(const gfx::Size& size,
60 float scale_factor,
61 const gfx::ColorSpace& color_space,
62 bool alpha) override;
60 bool IsDisplayedAsOverlayPlane() const override; 63 bool IsDisplayedAsOverlayPlane() const override;
61 unsigned GetOverlayTextureId() const override; 64 unsigned GetOverlayTextureId() const override;
62 bool BindToClient(cc::OutputSurfaceClient* client) override; 65 bool BindToClient(cc::OutputSurfaceClient* client) override;
63 66
64 // Taken from BrowserCompositor specific API. 67 // Taken from BrowserCompositor specific API.
65 void OnUpdateVSyncParametersFromGpu(base::TimeTicks timebase, 68 void OnUpdateVSyncParametersFromGpu(base::TimeTicks timebase,
66 base::TimeDelta interval); 69 base::TimeDelta interval);
67 70
68 // Called when a swap completion is sent from the GPU process. 71 // Called when a swap completion is sent from the GPU process.
69 void OnGpuSwapBuffersCompleted(gfx::SwapResult result); 72 void OnGpuSwapBuffersCompleted(gfx::SwapResult result);
70 73
71 display_compositor::GLHelper gl_helper_; 74 display_compositor::GLHelper gl_helper_;
72 std::unique_ptr<OzoneGpuMemoryBufferManager> ozone_gpu_memory_buffer_manager_; 75 std::unique_ptr<OzoneGpuMemoryBufferManager> ozone_gpu_memory_buffer_manager_;
73 std::unique_ptr<display_compositor::BufferQueue> buffer_queue_; 76 std::unique_ptr<display_compositor::BufferQueue> buffer_queue_;
74 cc::SyntheticBeginFrameSource* const synthetic_begin_frame_source_; 77 cc::SyntheticBeginFrameSource* const synthetic_begin_frame_source_;
75 78
76 base::WeakPtrFactory<DirectOutputSurfaceOzone> weak_ptr_factory_; 79 base::WeakPtrFactory<DirectOutputSurfaceOzone> weak_ptr_factory_;
77 }; 80 };
78 81
79 } // namespace mus 82 } // namespace mus
80 83
81 #endif // COMPONENTS_MUS_SURFACES_DIRECT_OUTPUT_SURFACE_OZONE_H_ 84 #endif // COMPONENTS_MUS_SURFACES_DIRECT_OUTPUT_SURFACE_OZONE_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | components/mus/surfaces/direct_output_surface_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698