| 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 20 matching lines...) Expand all Loading... |
| 31 public: | 31 public: |
| 32 using UpdateVSyncParametersCallback = | 32 using UpdateVSyncParametersCallback = |
| 33 base::Callback<void(base::TimeTicks timebase, base::TimeDelta interval)>; | 33 base::Callback<void(base::TimeTicks timebase, base::TimeDelta interval)>; |
| 34 | 34 |
| 35 ~BrowserCompositorOutputSurface() override; | 35 ~BrowserCompositorOutputSurface() override; |
| 36 | 36 |
| 37 // cc::OutputSurface implementation. | 37 // cc::OutputSurface implementation. |
| 38 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override; | 38 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override; |
| 39 bool HasExternalStencilTest() const override; | 39 bool HasExternalStencilTest() const override; |
| 40 void ApplyExternalStencil() override; | 40 void ApplyExternalStencil() override; |
| 41 bool CanPartialDraw(const gfx::Rect& damage) override; |
| 41 | 42 |
| 42 void SetReflector(ReflectorImpl* reflector); | 43 void SetReflector(ReflectorImpl* reflector); |
| 43 | 44 |
| 44 // Called when |reflector_| was updated. | 45 // Called when |reflector_| was updated. |
| 45 virtual void OnReflectorChanged(); | 46 virtual void OnReflectorChanged(); |
| 46 | 47 |
| 47 #if defined(OS_MACOSX) | 48 #if defined(OS_MACOSX) |
| 48 virtual void SetSurfaceSuspendedForRecycle(bool suspended) = 0; | 49 virtual void SetSurfaceSuspendedForRecycle(bool suspended) = 0; |
| 49 #endif | 50 #endif |
| 50 | 51 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 72 private: | 73 private: |
| 73 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> | 74 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> |
| 74 overlay_candidate_validator_; | 75 overlay_candidate_validator_; |
| 75 | 76 |
| 76 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface); | 77 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface); |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 } // namespace content | 80 } // namespace content |
| 80 | 81 |
| 81 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ | 82 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |
| OLD | NEW |