| 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> |
| 9 |
| 8 #include "base/cancelable_callback.h" | 10 #include "base/cancelable_callback.h" |
| 11 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "build/build_config.h" |
| 11 #include "content/browser/compositor/browser_compositor_output_surface.h" | 15 #include "content/browser/compositor/browser_compositor_output_surface.h" |
| 12 | 16 |
| 13 namespace ui { | 17 namespace ui { |
| 14 class CompositorVSyncManager; | 18 class CompositorVSyncManager; |
| 15 } | 19 } |
| 16 | 20 |
| 17 namespace content { | 21 namespace content { |
| 18 class CommandBufferProxyImpl; | 22 class CommandBufferProxyImpl; |
| 19 class ReflectorTexture; | 23 class ReflectorTexture; |
| 20 | 24 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 42 void OnReflectorChanged() override; | 46 void OnReflectorChanged() override; |
| 43 base::Closure CreateCompositionStartedCallback() override; | 47 base::Closure CreateCompositionStartedCallback() override; |
| 44 void OnGpuSwapBuffersCompleted( | 48 void OnGpuSwapBuffersCompleted( |
| 45 const std::vector<ui::LatencyInfo>& latency_info, | 49 const std::vector<ui::LatencyInfo>& latency_info, |
| 46 gfx::SwapResult result) override{}; | 50 gfx::SwapResult result) override{}; |
| 47 #if defined(OS_MACOSX) | 51 #if defined(OS_MACOSX) |
| 48 void SetSurfaceSuspendedForRecycle(bool suspended) override {}; | 52 void SetSurfaceSuspendedForRecycle(bool suspended) override {}; |
| 49 bool SurfaceShouldNotShowFramesAfterSuspendForRecycle() const override; | 53 bool SurfaceShouldNotShowFramesAfterSuspendForRecycle() const override; |
| 50 #endif | 54 #endif |
| 51 | 55 |
| 52 uint32 fbo_; | 56 uint32_t fbo_; |
| 53 bool is_backbuffer_discarded_; | 57 bool is_backbuffer_discarded_; |
| 54 scoped_ptr<ReflectorTexture> reflector_texture_; | 58 scoped_ptr<ReflectorTexture> reflector_texture_; |
| 55 | 59 |
| 56 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface> | 60 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface> |
| 57 weak_ptr_factory_; | 61 weak_ptr_factory_; |
| 58 | 62 |
| 59 private: | 63 private: |
| 60 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface); | 64 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface); |
| 61 }; | 65 }; |
| 62 | 66 |
| 63 } // namespace content | 67 } // namespace content |
| 64 | 68 |
| 65 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC
E_H_ | 69 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC
E_H_ |
| OLD | NEW |