OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "content/renderer/android/synchronous_compositor_frame_sink.h" | 5 #include "content/renderer/android/synchronous_compositor_frame_sink.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 } // namespace | 75 } // namespace |
76 | 76 |
77 class SynchronousCompositorFrameSink::SoftwareOutputSurface | 77 class SynchronousCompositorFrameSink::SoftwareOutputSurface |
78 : public cc::OutputSurface { | 78 : public cc::OutputSurface { |
79 public: | 79 public: |
80 SoftwareOutputSurface(std::unique_ptr<SoftwareDevice> software_device) | 80 SoftwareOutputSurface(std::unique_ptr<SoftwareDevice> software_device) |
81 : cc::OutputSurface(std::move(software_device)) {} | 81 : cc::OutputSurface(std::move(software_device)) {} |
82 | 82 |
83 // cc::OutputSurface implementation. | 83 // cc::OutputSurface implementation. |
| 84 void BindToClient(cc::OutputSurfaceClient* client) override {} |
84 void EnsureBackbuffer() override {} | 85 void EnsureBackbuffer() override {} |
85 void DiscardBackbuffer() override {} | 86 void DiscardBackbuffer() override {} |
86 void BindFramebuffer() override {} | 87 void BindFramebuffer() override {} |
87 void SwapBuffers(cc::OutputSurfaceFrame frame) override {} | 88 void SwapBuffers(cc::OutputSurfaceFrame frame) override {} |
88 void Reshape(const gfx::Size& size, | 89 void Reshape(const gfx::Size& size, |
89 float scale_factor, | 90 float scale_factor, |
90 const gfx::ColorSpace& color_space, | 91 const gfx::ColorSpace& color_space, |
91 bool has_alpha) override {} | 92 bool has_alpha) override {} |
92 uint32_t GetFramebufferCopyTextureFormat() override { return 0; } | 93 uint32_t GetFramebufferCopyTextureFormat() override { return 0; } |
93 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override { | 94 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override { |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 client_->ReclaimResources(resources); | 464 client_->ReclaimResources(resources); |
464 } | 465 } |
465 | 466 |
466 void SynchronousCompositorFrameSink::SetBeginFrameSource( | 467 void SynchronousCompositorFrameSink::SetBeginFrameSource( |
467 cc::BeginFrameSource* begin_frame_source) { | 468 cc::BeginFrameSource* begin_frame_source) { |
468 // Software output is synchronous and doesn't use a BeginFrameSource. | 469 // Software output is synchronous and doesn't use a BeginFrameSource. |
469 NOTREACHED(); | 470 NOTREACHED(); |
470 } | 471 } |
471 | 472 |
472 } // namespace content | 473 } // namespace content |
OLD | NEW |