Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: content/common/gpu/image_transport_surface.cc

Issue 10392068: ui: Move gl/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac_rel Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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)
OLDNEW
« no previous file with comments | « content/common/gpu/image_transport_surface.h ('k') | content/common/gpu/image_transport_surface_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698