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

Side by Side Diff: content/plugin/webplugin_proxy.cc

Issue 13529027: Switch Linux Auru ports over to POSIX SHM instead of legacy SYSV SHM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 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
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/common/common_param_traits.h » ('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/plugin/webplugin_proxy.h" 5 #include "content/plugin/webplugin_proxy.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 CreateDIBAndCGContextFromHandle(windowless_buffer0, 516 CreateDIBAndCGContextFromHandle(windowless_buffer0,
517 window_rect, 517 window_rect,
518 &windowless_dibs_[0], 518 &windowless_dibs_[0],
519 &windowless_contexts_[0]); 519 &windowless_contexts_[0]);
520 CreateDIBAndCGContextFromHandle(windowless_buffer1, 520 CreateDIBAndCGContextFromHandle(windowless_buffer1,
521 window_rect, 521 window_rect,
522 &windowless_dibs_[1], 522 &windowless_dibs_[1],
523 &windowless_contexts_[1]); 523 &windowless_contexts_[1]);
524 } 524 }
525 525
526 #elif defined(USE_X11) 526 #elif defined(TOOLKIT_GTK)
527 527
528 void WebPluginProxy::CreateDIBAndCanvasFromHandle( 528 void WebPluginProxy::CreateDIBAndCanvasFromHandle(
529 const TransportDIB::Handle& dib_handle, 529 const TransportDIB::Handle& dib_handle,
530 const gfx::Rect& window_rect, 530 const gfx::Rect& window_rect,
531 scoped_refptr<SharedTransportDIB>* dib_out, 531 scoped_refptr<SharedTransportDIB>* dib_out,
532 skia::RefPtr<skia::PlatformCanvas>* canvas) { 532 skia::RefPtr<skia::PlatformCanvas>* canvas) {
533 TransportDIB* dib = TransportDIB::Map(dib_handle); 533 TransportDIB* dib = TransportDIB::Map(dib_handle);
534 // dib may be NULL if the renderer has already destroyed the TransportDIB by 534 // dib may be NULL if the renderer has already destroyed the TransportDIB by
535 // the time we receive the handle, e.g. in case of multiple resizes. 535 // the time we receive the handle, e.g. in case of multiple resizes.
536 if (dib) { 536 if (dib) {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 if (delegate_->IsWindowless() && use_shm_pixmap_) { 582 if (delegate_->IsWindowless() && use_shm_pixmap_) {
583 CreateShmPixmapFromDIB(windowless_dibs_[0]->dib(), 583 CreateShmPixmapFromDIB(windowless_dibs_[0]->dib(),
584 window_rect, 584 window_rect,
585 &windowless_shm_pixmaps_[0]); 585 &windowless_shm_pixmaps_[0]);
586 CreateShmPixmapFromDIB(windowless_dibs_[1]->dib(), 586 CreateShmPixmapFromDIB(windowless_dibs_[1]->dib(),
587 window_rect, 587 window_rect,
588 &windowless_shm_pixmaps_[1]); 588 &windowless_shm_pixmaps_[1]);
589 } 589 }
590 } 590 }
591 591
592 #elif defined(OS_ANDROID) 592 #else
593 593
594 void WebPluginProxy::SetWindowlessBuffers( 594 void WebPluginProxy::SetWindowlessBuffers(
595 const TransportDIB::Handle& windowless_buffer0, 595 const TransportDIB::Handle& windowless_buffer0,
596 const TransportDIB::Handle& windowless_buffer1, 596 const TransportDIB::Handle& windowless_buffer1,
597 const gfx::Rect& window_rect) { 597 const gfx::Rect& window_rect) {
598 NOTIMPLEMENTED(); 598 NOTIMPLEMENTED();
599 } 599 }
600 600
601 #endif 601 #endif
602 602
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 int input_type; 690 int input_type;
691 gfx::Rect caret_rect; 691 gfx::Rect caret_rect;
692 if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) 692 if (!delegate_->GetIMEStatus(&input_type, &caret_rect))
693 return; 693 return;
694 694
695 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); 695 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect));
696 } 696 }
697 #endif 697 #endif
698 698
699 } // namespace content 699 } // namespace content
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/common/common_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698