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 #include "content/browser/compositor/gpu_browser_compositor_output_surface.h" | 5 #include "content/browser/compositor/gpu_browser_compositor_output_surface.h" |
6 | 6 |
7 #include "cc/output/compositor_frame.h" | 7 #include "cc/output/compositor_frame.h" |
8 #include "content/browser/compositor/reflector_impl.h" | 8 #include "content/browser/compositor/reflector_impl.h" |
9 #include "content/browser/gpu/gpu_surface_tracker.h" | |
alexst (slow to review)
2014/09/10 15:39:07
If this is used in the surfaceless file, let's mov
achaulk
2014/09/10 16:47:55
Leftover from older stuff
| |
9 #include "content/common/gpu/client/context_provider_command_buffer.h" | 10 #include "content/common/gpu/client/context_provider_command_buffer.h" |
10 #include "gpu/command_buffer/client/gles2_interface.h" | 11 #include "gpu/command_buffer/client/gles2_interface.h" |
11 | 12 |
12 namespace content { | 13 namespace content { |
13 | 14 |
14 GpuBrowserCompositorOutputSurface::GpuBrowserCompositorOutputSurface( | 15 GpuBrowserCompositorOutputSurface::GpuBrowserCompositorOutputSurface( |
15 const scoped_refptr<ContextProviderCommandBuffer>& context, | 16 const scoped_refptr<ContextProviderCommandBuffer>& context, |
16 int surface_id, | 17 int surface_id, |
17 IDMap<BrowserCompositorOutputSurface>* output_surface_map, | 18 IDMap<BrowserCompositorOutputSurface>* output_surface_map, |
18 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, | 19 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, |
(...skipping 24 matching lines...) Expand all Loading... | |
43 gfx::Rect(frame->gl_frame_data->size)) | 44 gfx::Rect(frame->gl_frame_data->size)) |
44 reflector_->OnSwapBuffers(); | 45 reflector_->OnSwapBuffers(); |
45 else | 46 else |
46 reflector_->OnPostSubBuffer(frame->gl_frame_data->sub_buffer_rect); | 47 reflector_->OnPostSubBuffer(frame->gl_frame_data->sub_buffer_rect); |
47 } | 48 } |
48 | 49 |
49 OutputSurface::SwapBuffers(frame); | 50 OutputSurface::SwapBuffers(frame); |
50 } | 51 } |
51 | 52 |
52 } // namespace content | 53 } // namespace content |
OLD | NEW |