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/gfx/gl/gl_switches.h" | 18 #include "ui/gl/gl_switches.h" |
19 | 19 |
20 ImageTransportSurface::ImageTransportSurface() {} | 20 ImageTransportSurface::ImageTransportSurface() {} |
21 | 21 |
22 ImageTransportSurface::~ImageTransportSurface() {} | 22 ImageTransportSurface::~ImageTransportSurface() {} |
23 | 23 |
24 void ImageTransportSurface::GetRegionsToCopy( | 24 void ImageTransportSurface::GetRegionsToCopy( |
25 const gfx::Rect& previous_damage_rect, | 25 const gfx::Rect& previous_damage_rect, |
26 const gfx::Rect& new_damage_rect, | 26 const gfx::Rect& new_damage_rect, |
27 std::vector<gfx::Rect>* regions) { | 27 std::vector<gfx::Rect>* regions) { |
28 gfx::Rect intersection = previous_damage_rect.Intersect(new_damage_rect); | 28 gfx::Rect intersection = previous_damage_rect.Intersect(new_damage_rect); |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 helper_->SendResizeView(size); | 333 helper_->SendResizeView(size); |
334 helper_->SetScheduled(false); | 334 helper_->SetScheduled(false); |
335 } else { | 335 } else { |
336 Resize(new_size_); | 336 Resize(new_size_); |
337 } | 337 } |
338 } | 338 } |
339 | 339 |
340 PassThroughImageTransportSurface::~PassThroughImageTransportSurface() {} | 340 PassThroughImageTransportSurface::~PassThroughImageTransportSurface() {} |
341 | 341 |
342 #endif // defined(ENABLE_GPU) | 342 #endif // defined(ENABLE_GPU) |
OLD | NEW |