OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #if defined(ENABLE_GPU) | 5 #if defined(ENABLE_GPU) |
6 | 6 |
7 #include "content/common/gpu/image_transport_surface.h" | 7 #include "content/common/gpu/image_transport_surface.h" |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/debug/trace_event.h" | 12 #include "base/debug/trace_event.h" |
13 #include "content/common/gpu/gpu_channel.h" | 13 #include "content/common/gpu/gpu_channel.h" |
14 #include "content/common/gpu/gpu_channel_manager.h" | 14 #include "content/common/gpu/gpu_channel_manager.h" |
15 #include "content/common/gpu/gpu_command_buffer_stub.h" | 15 #include "content/common/gpu/gpu_command_buffer_stub.h" |
16 #include "content/common/gpu/gpu_messages.h" | 16 #include "content/common/gpu/gpu_messages.h" |
17 #include "gpu/command_buffer/service/gpu_scheduler.h" | 17 #include "gpu/command_buffer/service/gpu_scheduler.h" |
18 #include "ui/gl/gl_switches.h" | 18 #include "ui/gl/gl_switches.h" |
19 #include "ui/gl/gl_implementation.h" | 19 #include "ui/gl/gl_implementation.h" |
20 | 20 |
| 21 namespace content { |
| 22 |
21 ImageTransportSurface::ImageTransportSurface() {} | 23 ImageTransportSurface::ImageTransportSurface() {} |
22 | 24 |
23 ImageTransportSurface::~ImageTransportSurface() {} | 25 ImageTransportSurface::~ImageTransportSurface() {} |
24 | 26 |
25 void ImageTransportSurface::OnSetFrontSurfaceIsProtected( | 27 void ImageTransportSurface::OnSetFrontSurfaceIsProtected( |
26 bool is_protected, uint32 protection_state_id) { | 28 bool is_protected, uint32 protection_state_id) { |
27 } | 29 } |
28 | 30 |
29 void ImageTransportSurface::GetRegionsToCopy( | 31 void ImageTransportSurface::GetRegionsToCopy( |
30 const gfx::Rect& previous_damage_rect, | 32 const gfx::Rect& previous_damage_rect, |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 Resize(new_size_); | 332 Resize(new_size_); |
331 } | 333 } |
332 } | 334 } |
333 | 335 |
334 gfx::Size PassThroughImageTransportSurface::GetSize() { | 336 gfx::Size PassThroughImageTransportSurface::GetSize() { |
335 return GLSurfaceAdapter::GetSize(); | 337 return GLSurfaceAdapter::GetSize(); |
336 } | 338 } |
337 | 339 |
338 PassThroughImageTransportSurface::~PassThroughImageTransportSurface() {} | 340 PassThroughImageTransportSurface::~PassThroughImageTransportSurface() {} |
339 | 341 |
| 342 } // namespace content |
| 343 |
340 #endif // defined(ENABLE_GPU) | 344 #endif // defined(ENABLE_GPU) |
OLD | NEW |