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

Side by Side Diff: content/browser/gpu/gpu_process_host_ui_shim.cc

Issue 11225045: Move a bunch of content\common code into the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 #include "content/browser/gpu/gpu_process_host_ui_shim.h" 5 #include "content/browser/gpu/gpu_process_host_ui_shim.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 14 matching lines...) Expand all
25 25
26 #if defined(TOOLKIT_GTK) 26 #if defined(TOOLKIT_GTK)
27 // These two #includes need to come after gpu_messages.h. 27 // These two #includes need to come after gpu_messages.h.
28 #include "ui/base/x/x11_util.h" 28 #include "ui/base/x/x11_util.h"
29 #include "ui/gfx/size.h" 29 #include "ui/gfx/size.h"
30 #include <gdk/gdk.h> // NOLINT 30 #include <gdk/gdk.h> // NOLINT
31 #include <gdk/gdkx.h> // NOLINT 31 #include <gdk/gdkx.h> // NOLINT
32 #endif 32 #endif
33 33
34 using content::BrowserThread; 34 using content::BrowserThread;
35 using content::GpuSurfaceTracker;
35 using content::RenderWidgetHostImpl; 36 using content::RenderWidgetHostImpl;
36 using content::RenderWidgetHostViewPort; 37 using content::RenderWidgetHostViewPort;
37 38
38 namespace { 39 namespace {
39 40
40 // One of the linux specific headers defines this as a macro. 41 // One of the linux specific headers defines this as a macro.
41 #ifdef DestroyAll 42 #ifdef DestroyAll
42 #undef DestroyAll 43 #undef DestroyAll
43 #endif 44 #endif
44 45
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 return; 364 return;
364 view->AcceleratedSurfaceRelease(params.identifier); 365 view->AcceleratedSurfaceRelease(params.identifier);
365 } 366 }
366 367
367 void GpuProcessHostUIShim::OnVideoMemoryUsageStatsReceived( 368 void GpuProcessHostUIShim::OnVideoMemoryUsageStatsReceived(
368 const content::GPUVideoMemoryUsageStats& video_memory_usage_stats) { 369 const content::GPUVideoMemoryUsageStats& video_memory_usage_stats) {
369 GpuDataManagerImpl::GetInstance()->UpdateVideoMemoryUsageStats( 370 GpuDataManagerImpl::GetInstance()->UpdateVideoMemoryUsageStats(
370 video_memory_usage_stats); 371 video_memory_usage_stats);
371 } 372 }
372 373
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698