| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H
_ | 5 #ifndef CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H
_ |
| 6 #define CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H
_ | 6 #define CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H
_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> | 32 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> |
| 33 overlay_candidate_validator); | 33 overlay_candidate_validator); |
| 34 | 34 |
| 35 ~OffscreenBrowserCompositorOutputSurface() override; | 35 ~OffscreenBrowserCompositorOutputSurface() override; |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 // cc::OutputSurface implementation. | 38 // cc::OutputSurface implementation. |
| 39 void BindToClient(cc::OutputSurfaceClient* client) override; | 39 void BindToClient(cc::OutputSurfaceClient* client) override; |
| 40 void EnsureBackbuffer() override; | 40 void EnsureBackbuffer() override; |
| 41 void DiscardBackbuffer() override; | 41 void DiscardBackbuffer() override; |
| 42 void SetDrawRectangle(const gfx::Rect& draw_rectangle) override; |
| 42 void Reshape(const gfx::Size& size, | 43 void Reshape(const gfx::Size& size, |
| 43 float scale_factor, | 44 float scale_factor, |
| 44 const gfx::ColorSpace& color_space, | 45 const gfx::ColorSpace& color_space, |
| 45 bool alpha, | 46 bool alpha, |
| 46 bool stencil) override; | 47 bool stencil) override; |
| 47 void BindFramebuffer() override; | 48 void BindFramebuffer() override; |
| 48 void SwapBuffers(cc::OutputSurfaceFrame frame) override; | 49 void SwapBuffers(cc::OutputSurfaceFrame frame) override; |
| 49 bool IsDisplayedAsOverlayPlane() const override; | 50 bool IsDisplayedAsOverlayPlane() const override; |
| 50 unsigned GetOverlayTextureId() const override; | 51 unsigned GetOverlayTextureId() const override; |
| 51 bool SurfaceIsSuspendForRecycle() const override; | 52 bool SurfaceIsSuspendForRecycle() const override; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 66 std::unique_ptr<ReflectorTexture> reflector_texture_; | 67 std::unique_ptr<ReflectorTexture> reflector_texture_; |
| 67 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface> | 68 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface> |
| 68 weak_ptr_factory_; | 69 weak_ptr_factory_; |
| 69 | 70 |
| 70 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface); | 71 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface); |
| 71 }; | 72 }; |
| 72 | 73 |
| 73 } // namespace content | 74 } // namespace content |
| 74 | 75 |
| 75 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC
E_H_ | 76 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC
E_H_ |
| OLD | NEW |