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

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

Issue 6981001: Make the Pepper proxy support in-process font rendering. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <objidl.h> 9 #include <objidl.h>
10 #include <mlang.h> 10 #include <mlang.h>
(...skipping 20 matching lines...) Expand all
31 #include "ui/gfx/surface/transport_dib.h" 31 #include "ui/gfx/surface/transport_dib.h"
32 #include "webkit/plugins/npapi/plugin_instance.h" 32 #include "webkit/plugins/npapi/plugin_instance.h"
33 #include "webkit/plugins/npapi/plugin_lib.h" 33 #include "webkit/plugins/npapi/plugin_lib.h"
34 #include "webkit/glue/webkit_glue.h" 34 #include "webkit/glue/webkit_glue.h"
35 35
36 #if defined(OS_MACOSX) 36 #if defined(OS_MACOSX)
37 #include "base/mac/mac_util.h" 37 #include "base/mac/mac_util.h"
38 #endif 38 #endif
39 39
40 #if defined(OS_LINUX) 40 #if defined(OS_LINUX)
41 #include "content/renderer/renderer_sandbox_support_linux.h" 41 //#include "content/common/child_process_sandbox_support_linux.h"
piman 2011/05/09 20:13:44 just remove it
42 #endif 42 #endif
43 43
44 RenderProcessImpl::RenderProcessImpl() 44 RenderProcessImpl::RenderProcessImpl()
45 : ALLOW_THIS_IN_INITIALIZER_LIST(shared_mem_cache_cleaner_( 45 : ALLOW_THIS_IN_INITIALIZER_LIST(shared_mem_cache_cleaner_(
46 base::TimeDelta::FromSeconds(5), 46 base::TimeDelta::FromSeconds(5),
47 this, &RenderProcessImpl::ClearTransportDIBCache)), 47 this, &RenderProcessImpl::ClearTransportDIBCache)),
48 transport_dib_next_sequence_number_(0) { 48 transport_dib_next_sequence_number_(0) {
49 in_process_plugins_ = InProcessPlugins(); 49 in_process_plugins_ = InProcessPlugins();
50 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) 50 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i)
51 shared_mem_cache_[i] = NULL; 51 shared_mem_cache_[i] = NULL;
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 } 256 }
257 257
258 void RenderProcessImpl::ClearTransportDIBCache() { 258 void RenderProcessImpl::ClearTransportDIBCache() {
259 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { 259 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) {
260 if (shared_mem_cache_[i]) { 260 if (shared_mem_cache_[i]) {
261 FreeTransportDIB(shared_mem_cache_[i]); 261 FreeTransportDIB(shared_mem_cache_[i]);
262 shared_mem_cache_[i] = NULL; 262 shared_mem_cache_[i] = NULL;
263 } 263 }
264 } 264 }
265 } 265 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698