| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ | 5 #ifndef CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |
| 6 #define CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ | 6 #define CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/threading/non_thread_safe.h" | 9 #include "base/threading/non_thread_safe.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 class ReflectorImpl; | 34 class ReflectorImpl; |
| 35 class WebGraphicsContext3DCommandBufferImpl; | 35 class WebGraphicsContext3DCommandBufferImpl; |
| 36 | 36 |
| 37 class CONTENT_EXPORT BrowserCompositorOutputSurface | 37 class CONTENT_EXPORT BrowserCompositorOutputSurface |
| 38 : public cc::OutputSurface { | 38 : public cc::OutputSurface { |
| 39 public: | 39 public: |
| 40 ~BrowserCompositorOutputSurface() override; | 40 ~BrowserCompositorOutputSurface() override; |
| 41 | 41 |
| 42 // cc::OutputSurface implementation. | 42 // cc::OutputSurface implementation. |
| 43 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override; | 43 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override; |
| 44 bool HasExternalStencilTest() const override; |
| 45 void ApplyExternalStencil() override; |
| 44 | 46 |
| 45 void OnUpdateVSyncParametersFromGpu(base::TimeTicks timebase, | 47 void OnUpdateVSyncParametersFromGpu(base::TimeTicks timebase, |
| 46 base::TimeDelta interval); | 48 base::TimeDelta interval); |
| 47 | 49 |
| 48 void SetReflector(ReflectorImpl* reflector); | 50 void SetReflector(ReflectorImpl* reflector); |
| 49 | 51 |
| 50 // Called when |reflector_| was updated. | 52 // Called when |reflector_| was updated. |
| 51 virtual void OnReflectorChanged(); | 53 virtual void OnReflectorChanged(); |
| 52 | 54 |
| 53 // Called when a swap completion is sent from the GPU process. | 55 // Called when a swap completion is sent from the GPU process. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 private: | 94 private: |
| 93 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> | 95 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> |
| 94 overlay_candidate_validator_; | 96 overlay_candidate_validator_; |
| 95 | 97 |
| 96 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface); | 98 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface); |
| 97 }; | 99 }; |
| 98 | 100 |
| 99 } // namespace content | 101 } // namespace content |
| 100 | 102 |
| 101 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ | 103 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |
| OLD | NEW |