| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 // cc::OutputSurface implementation. | 84 // cc::OutputSurface implementation. |
| 85 void BindToClient(cc::OutputSurfaceClient* client) override {} | 85 void BindToClient(cc::OutputSurfaceClient* client) override {} |
| 86 void EnsureBackbuffer() override {} | 86 void EnsureBackbuffer() override {} |
| 87 void DiscardBackbuffer() override {} | 87 void DiscardBackbuffer() override {} |
| 88 void BindFramebuffer() override {} | 88 void BindFramebuffer() override {} |
| 89 void SwapBuffers(cc::OutputSurfaceFrame frame) override {} | 89 void SwapBuffers(cc::OutputSurfaceFrame frame) override {} |
| 90 void Reshape(const gfx::Size& size, | 90 void Reshape(const gfx::Size& size, |
| 91 float scale_factor, | 91 float scale_factor, |
| 92 const gfx::ColorSpace& color_space, | 92 const gfx::ColorSpace& color_space, |
| 93 bool has_alpha) override {} | 93 bool has_alpha, |
| 94 bool use_stencil) override {} |
| 94 uint32_t GetFramebufferCopyTextureFormat() override { return 0; } | 95 uint32_t GetFramebufferCopyTextureFormat() override { return 0; } |
| 95 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override { | 96 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override { |
| 96 return nullptr; | 97 return nullptr; |
| 97 } | 98 } |
| 98 bool IsDisplayedAsOverlayPlane() const override { return false; } | 99 bool IsDisplayedAsOverlayPlane() const override { return false; } |
| 99 unsigned GetOverlayTextureId() const override { return 0; } | 100 unsigned GetOverlayTextureId() const override { return 0; } |
| 100 bool SurfaceIsSuspendForRecycle() const override { return false; } | 101 bool SurfaceIsSuspendForRecycle() const override { return false; } |
| 101 bool HasExternalStencilTest() const override { return false; } | 102 bool HasExternalStencilTest() const override { return false; } |
| 102 void ApplyExternalStencil() override {} | 103 void ApplyExternalStencil() override {} |
| 103 }; | 104 }; |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 client_->ReclaimResources(resources); | 471 client_->ReclaimResources(resources); |
| 471 } | 472 } |
| 472 | 473 |
| 473 void SynchronousCompositorFrameSink::SetBeginFrameSource( | 474 void SynchronousCompositorFrameSink::SetBeginFrameSource( |
| 474 cc::BeginFrameSource* begin_frame_source) { | 475 cc::BeginFrameSource* begin_frame_source) { |
| 475 // Software output is synchronous and doesn't use a BeginFrameSource. | 476 // Software output is synchronous and doesn't use a BeginFrameSource. |
| 476 NOTREACHED(); | 477 NOTREACHED(); |
| 477 } | 478 } |
| 478 | 479 |
| 479 } // namespace content | 480 } // namespace content |
| OLD | NEW |