| 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 #include "content/browser/compositor/offscreen_browser_compositor_output_surface
.h" | 5 #include "content/browser/compositor/offscreen_browser_compositor_output_surface
.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 using cc::GLFrameData; | 27 using cc::GLFrameData; |
| 28 using cc::ResourceProvider; | 28 using cc::ResourceProvider; |
| 29 using gpu::gles2::GLES2Interface; | 29 using gpu::gles2::GLES2Interface; |
| 30 | 30 |
| 31 namespace content { | 31 namespace content { |
| 32 | 32 |
| 33 OffscreenBrowserCompositorOutputSurface:: | 33 OffscreenBrowserCompositorOutputSurface:: |
| 34 OffscreenBrowserCompositorOutputSurface( | 34 OffscreenBrowserCompositorOutputSurface( |
| 35 scoped_refptr<ContextProviderCommandBuffer> context, | 35 scoped_refptr<ContextProviderCommandBuffer> context, |
| 36 scoped_refptr<ui::CompositorVSyncManager> vsync_manager, | 36 scoped_refptr<ui::CompositorVSyncManager> vsync_manager, |
| 37 base::SingleThreadTaskRunner* task_runner, | 37 cc::SyntheticBeginFrameSource* begin_frame_source, |
| 38 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> | 38 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> |
| 39 overlay_candidate_validator) | 39 overlay_candidate_validator) |
| 40 : BrowserCompositorOutputSurface(std::move(context), | 40 : BrowserCompositorOutputSurface(std::move(context), |
| 41 std::move(vsync_manager), | 41 std::move(vsync_manager), |
| 42 task_runner, | 42 begin_frame_source, |
| 43 std::move(overlay_candidate_validator)), | 43 std::move(overlay_candidate_validator)), |
| 44 fbo_(0), | 44 fbo_(0), |
| 45 is_backbuffer_discarded_(false), | 45 is_backbuffer_discarded_(false), |
| 46 weak_ptr_factory_(this) { | 46 weak_ptr_factory_(this) { |
| 47 capabilities_.uses_default_gl_framebuffer = false; | 47 capabilities_.uses_default_gl_framebuffer = false; |
| 48 } | 48 } |
| 49 | 49 |
| 50 OffscreenBrowserCompositorOutputSurface:: | 50 OffscreenBrowserCompositorOutputSurface:: |
| 51 ~OffscreenBrowserCompositorOutputSurface() { | 51 ~OffscreenBrowserCompositorOutputSurface() { |
| 52 DiscardBackbuffer(); | 52 DiscardBackbuffer(); |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 if (reflector_) | 157 if (reflector_) |
| 158 EnsureBackbuffer(); | 158 EnsureBackbuffer(); |
| 159 } | 159 } |
| 160 | 160 |
| 161 base::Closure | 161 base::Closure |
| 162 OffscreenBrowserCompositorOutputSurface::CreateCompositionStartedCallback() { | 162 OffscreenBrowserCompositorOutputSurface::CreateCompositionStartedCallback() { |
| 163 return base::Closure(); | 163 return base::Closure(); |
| 164 } | 164 } |
| 165 | 165 |
| 166 } // namespace content | 166 } // namespace content |
| OLD | NEW |