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

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

Issue 379233005: ozone: Move public files to ui/ozone/public & update public DEPS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
11 #include "base/id_map.h" 11 #include "base/id_map.h"
12 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
13 #include "base/strings/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
14 #include "content/browser/gpu/gpu_data_manager_impl.h" 14 #include "content/browser/gpu/gpu_data_manager_impl.h"
15 #include "content/browser/gpu/gpu_process_host.h" 15 #include "content/browser/gpu/gpu_process_host.h"
16 #include "content/browser/gpu/gpu_surface_tracker.h" 16 #include "content/browser/gpu/gpu_surface_tracker.h"
17 #include "content/browser/renderer_host/render_process_host_impl.h" 17 #include "content/browser/renderer_host/render_process_host_impl.h"
18 #include "content/browser/renderer_host/render_view_host_impl.h" 18 #include "content/browser/renderer_host/render_view_host_impl.h"
19 #include "content/browser/renderer_host/render_widget_host_view_base.h" 19 #include "content/browser/renderer_host/render_widget_host_view_base.h"
20 #include "content/common/gpu/gpu_messages.h" 20 #include "content/common/gpu/gpu_messages.h"
21 #include "content/public/browser/browser_thread.h" 21 #include "content/public/browser/browser_thread.h"
22 22
23 #if defined(USE_OZONE) 23 #if defined(USE_OZONE)
24 #include "ui/ozone/ozone_platform.h"
25 #include "ui/ozone/public/gpu_platform_support_host.h" 24 #include "ui/ozone/public/gpu_platform_support_host.h"
25 #include "ui/ozone/public/ozone_platform.h"
26 #endif 26 #endif
27 27
28 namespace content { 28 namespace content {
29 29
30 namespace { 30 namespace {
31 31
32 // One of the linux specific headers defines this as a macro. 32 // One of the linux specific headers defines this as a macro.
33 #ifdef DestroyAll 33 #ifdef DestroyAll
34 #undef DestroyAll 34 #undef DestroyAll
35 #endif 35 #endif
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 view->AcceleratedSurfaceRelease(); 344 view->AcceleratedSurfaceRelease();
345 } 345 }
346 346
347 void GpuProcessHostUIShim::OnVideoMemoryUsageStatsReceived( 347 void GpuProcessHostUIShim::OnVideoMemoryUsageStatsReceived(
348 const GPUVideoMemoryUsageStats& video_memory_usage_stats) { 348 const GPUVideoMemoryUsageStats& video_memory_usage_stats) {
349 GpuDataManagerImpl::GetInstance()->UpdateVideoMemoryUsageStats( 349 GpuDataManagerImpl::GetInstance()->UpdateVideoMemoryUsageStats(
350 video_memory_usage_stats); 350 video_memory_usage_stats);
351 } 351 }
352 352
353 } // namespace content 353 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698