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

Side by Side Diff: content/renderer/render_process_impl.cc

Issue 10351002: ui: Move surface/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix gpu DEPS 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 #include "content/renderer/render_process_impl.h"
6
5 #include "build/build_config.h" 7 #include "build/build_config.h"
6 8
7 #if defined(OS_WIN) 9 #if defined(OS_WIN)
8 #include <windows.h> 10 #include <windows.h>
9 #include <objidl.h> 11 #include <objidl.h>
10 #include <mlang.h> 12 #include <mlang.h>
11 #endif 13 #endif
12 14
13 #include "content/renderer/render_process_impl.h"
14
15 #include "base/basictypes.h" 15 #include "base/basictypes.h"
16 #include "base/command_line.h" 16 #include "base/command_line.h"
17 #include "base/compiler_specific.h" 17 #include "base/compiler_specific.h"
18 #include "base/message_loop.h" 18 #include "base/message_loop.h"
19 #include "base/sys_info.h" 19 #include "base/sys_info.h"
20 #include "base/utf_string_conversions.h" 20 #include "base/utf_string_conversions.h"
21 #include "content/common/child_thread.h" 21 #include "content/common/child_thread.h"
22 #include "content/common/view_messages.h" 22 #include "content/common/view_messages.h"
23 #include "content/public/common/content_switches.h" 23 #include "content/public/common/content_switches.h"
24 #include "content/public/renderer/content_renderer_client.h" 24 #include "content/public/renderer/content_renderer_client.h"
25 #include "ipc/ipc_channel.h" 25 #include "ipc/ipc_channel.h"
26 #include "ipc/ipc_message_utils.h" 26 #include "ipc/ipc_message_utils.h"
27 #include "skia/ext/platform_canvas.h" 27 #include "skia/ext/platform_canvas.h"
28 #include "ui/gfx/surface/transport_dib.h" 28 #include "ui/surface/transport_dib.h"
29 #include "webkit/glue/webkit_glue.h"
29 #include "webkit/plugins/npapi/plugin_instance.h" 30 #include "webkit/plugins/npapi/plugin_instance.h"
30 #include "webkit/plugins/npapi/plugin_lib.h" 31 #include "webkit/plugins/npapi/plugin_lib.h"
31 #include "webkit/glue/webkit_glue.h"
32 32
33 #if defined(OS_MACOSX) 33 #if defined(OS_MACOSX)
34 #include "base/mac/mac_util.h" 34 #include "base/mac/mac_util.h"
35 #endif 35 #endif
36 36
37 RenderProcessImpl::RenderProcessImpl() 37 RenderProcessImpl::RenderProcessImpl()
38 : ALLOW_THIS_IN_INITIALIZER_LIST(shared_mem_cache_cleaner_( 38 : ALLOW_THIS_IN_INITIALIZER_LIST(shared_mem_cache_cleaner_(
39 FROM_HERE, base::TimeDelta::FromSeconds(5), 39 FROM_HERE, base::TimeDelta::FromSeconds(5),
40 this, &RenderProcessImpl::ClearTransportDIBCache)), 40 this, &RenderProcessImpl::ClearTransportDIBCache)),
41 transport_dib_next_sequence_number_(0), 41 transport_dib_next_sequence_number_(0),
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 } 239 }
240 240
241 void RenderProcessImpl::ClearTransportDIBCache() { 241 void RenderProcessImpl::ClearTransportDIBCache() {
242 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { 242 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) {
243 if (shared_mem_cache_[i]) { 243 if (shared_mem_cache_[i]) {
244 FreeTransportDIB(shared_mem_cache_[i]); 244 FreeTransportDIB(shared_mem_cache_[i]);
245 shared_mem_cache_[i] = NULL; 245 shared_mem_cache_[i] = NULL;
246 } 246 }
247 } 247 }
248 } 248 }
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_platform_image_2d_impl.cc ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698