| OLD | NEW |
| 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" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 // cc::OutputSurface implementation. | 53 // cc::OutputSurface implementation. |
| 54 void BindToClient(cc::OutputSurfaceClient* client) override; | 54 void BindToClient(cc::OutputSurfaceClient* client) override; |
| 55 void EnsureBackbuffer() override; | 55 void EnsureBackbuffer() override; |
| 56 void DiscardBackbuffer() override; | 56 void DiscardBackbuffer() override; |
| 57 void BindFramebuffer() override; | 57 void BindFramebuffer() override; |
| 58 void Reshape(const gfx::Size& size, | 58 void Reshape(const gfx::Size& size, |
| 59 float device_scale_factor, | 59 float device_scale_factor, |
| 60 const gfx::ColorSpace& color_space, | 60 const gfx::ColorSpace& color_space, |
| 61 bool has_alpha) override; | 61 bool has_alpha, |
| 62 bool use_stencil) override; |
| 62 void SwapBuffers(cc::OutputSurfaceFrame frame) override; | 63 void SwapBuffers(cc::OutputSurfaceFrame frame) override; |
| 63 uint32_t GetFramebufferCopyTextureFormat() override; | 64 uint32_t GetFramebufferCopyTextureFormat() override; |
| 64 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override; | 65 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override; |
| 65 bool IsDisplayedAsOverlayPlane() const override; | 66 bool IsDisplayedAsOverlayPlane() const override; |
| 66 unsigned GetOverlayTextureId() const override; | 67 unsigned GetOverlayTextureId() const override; |
| 67 bool SurfaceIsSuspendForRecycle() const override; | 68 bool SurfaceIsSuspendForRecycle() const override; |
| 68 bool HasExternalStencilTest() const override; | 69 bool HasExternalStencilTest() const override; |
| 69 void ApplyExternalStencil() override; | 70 void ApplyExternalStencil() override; |
| 70 | 71 |
| 71 // Called when a swap completion is signaled from ImageTransportSurface. | 72 // Called when a swap completion is signaled from ImageTransportSurface. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 84 | 85 |
| 85 gfx::Size reshape_size_; | 86 gfx::Size reshape_size_; |
| 86 gfx::Size swap_size_; | 87 gfx::Size swap_size_; |
| 87 | 88 |
| 88 base::WeakPtrFactory<DisplayOutputSurfaceOzone> weak_ptr_factory_; | 89 base::WeakPtrFactory<DisplayOutputSurfaceOzone> weak_ptr_factory_; |
| 89 }; | 90 }; |
| 90 | 91 |
| 91 } // namespace ui | 92 } // namespace ui |
| 92 | 93 |
| 93 #endif // SERVICES_UI_SURFACES_DISPLAY_OUTPUT_SURFACE_OZONE_H_ | 94 #endif // SERVICES_UI_SURFACES_DISPLAY_OUTPUT_SURFACE_OZONE_H_ |
| OLD | NEW |