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

Side by Side Diff: content/renderer/renderer_glue.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 // This file provides the embedder's side of random webkit glue functions. 5 // This file provides the embedder's side of random webkit glue functions.
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include <windows.h> 10 #include <windows.h>
(...skipping 17 matching lines...) Expand all
28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKitClient.h" 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKitClient.h"
29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
30 #include "third_party/skia/include/core/SkBitmap.h" 30 #include "third_party/skia/include/core/SkBitmap.h"
31 #include "ui/base/clipboard/clipboard.h" 31 #include "ui/base/clipboard/clipboard.h"
32 #include "ui/base/resource/resource_bundle.h" 32 #include "ui/base/resource/resource_bundle.h"
33 #include "webkit/glue/scoped_clipboard_writer_glue.h" 33 #include "webkit/glue/scoped_clipboard_writer_glue.h"
34 #include "webkit/glue/webkit_glue.h" 34 #include "webkit/glue/webkit_glue.h"
35 #include "webkit/glue/websocketstreamhandle_bridge.h" 35 #include "webkit/glue/websocketstreamhandle_bridge.h"
36 36
37 #if defined(OS_LINUX) 37 #if defined(OS_LINUX)
38 #include "content/renderer/renderer_sandbox_support_linux.h" 38 #include "content/common/child_process_sandbox_support_linux.h"
39 #endif 39 #endif
40 40
41 // This definition of WriteBitmapFromPixels uses shared memory to communicate 41 // This definition of WriteBitmapFromPixels uses shared memory to communicate
42 // across processes. 42 // across processes.
43 void ScopedClipboardWriterGlue::WriteBitmapFromPixels(const void* pixels, 43 void ScopedClipboardWriterGlue::WriteBitmapFromPixels(const void* pixels,
44 const gfx::Size& size) { 44 const gfx::Size& size) {
45 // Do not try to write a bitmap more than once 45 // Do not try to write a bitmap more than once
46 if (shared_buf_) 46 if (shared_buf_)
47 return; 47 return;
48 48
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 return CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess); 255 return CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess);
256 } 256 }
257 257
258 void EnableSpdy(bool enable) { 258 void EnableSpdy(bool enable) {
259 RenderThread::current()->EnableSpdy(enable); 259 RenderThread::current()->EnableSpdy(enable);
260 } 260 }
261 261
262 #if defined(OS_LINUX) 262 #if defined(OS_LINUX)
263 int MatchFontWithFallback(const std::string& face, bool bold, 263 int MatchFontWithFallback(const std::string& face, bool bold,
264 bool italic, int charset) { 264 bool italic, int charset) {
265 return renderer_sandbox_support::MatchFontWithFallback( 265 return child_process_sandbox_support::MatchFontWithFallback(
266 face, bold, italic, charset); 266 face, bold, italic, charset);
267 } 267 }
268 268
269 bool GetFontTable(int fd, uint32_t table, uint8_t* output, 269 bool GetFontTable(int fd, uint32_t table, uint8_t* output,
270 size_t* output_length) { 270 size_t* output_length) {
271 return renderer_sandbox_support::GetFontTable( 271 return child_process_sandbox_support::GetFontTable(
272 fd, table, output, output_length); 272 fd, table, output, output_length);
273 } 273 }
274 #endif 274 #endif
275 275
276 } // namespace webkit_glue 276 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « content/renderer/render_process_impl.cc ('k') | content/renderer/renderer_sandbox_support_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698