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

Side by Side Diff: webkit/glue/plugins/pepper_webplugin_impl.cc

Issue 3531008: Integrated Pepper3D v2 with the accelerated compositor.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "webkit/glue/plugins/pepper_webplugin_impl.h" 5 #include "webkit/glue/plugins/pepper_webplugin_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "ppapi/c/pp_var.h" 10 #include "ppapi/c/pp_var.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 void WebPluginImpl::updateGeometry( 102 void WebPluginImpl::updateGeometry(
103 const WebRect& window_rect, 103 const WebRect& window_rect,
104 const WebRect& clip_rect, 104 const WebRect& clip_rect,
105 const WebVector<WebRect>& cut_outs_rects, 105 const WebVector<WebRect>& cut_outs_rects,
106 bool is_visible) { 106 bool is_visible) {
107 plugin_rect_ = window_rect; 107 plugin_rect_ = window_rect;
108 if (!instance_->IsFullscreen()) 108 if (!instance_->IsFullscreen())
109 instance_->ViewChanged(plugin_rect_, clip_rect); 109 instance_->ViewChanged(plugin_rect_, clip_rect);
110 } 110 }
111 111
112 unsigned WebPluginImpl::getBackingTextureId() {
113 return instance_->GetBackingTextureId();
114 }
115
112 void WebPluginImpl::updateFocus(bool focused) { 116 void WebPluginImpl::updateFocus(bool focused) {
113 instance_->SetWebKitFocus(focused); 117 instance_->SetWebKitFocus(focused);
114 } 118 }
115 119
116 void WebPluginImpl::updateVisibility(bool visible) { 120 void WebPluginImpl::updateVisibility(bool visible) {
117 } 121 }
118 122
119 bool WebPluginImpl::acceptsInputEvents() { 123 bool WebPluginImpl::acceptsInputEvents() {
120 return true; 124 return true;
121 } 125 }
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 bool WebPluginImpl::printPage(int page_number, 217 bool WebPluginImpl::printPage(int page_number,
214 WebKit::WebCanvas* canvas) { 218 WebKit::WebCanvas* canvas) {
215 return instance_->PrintPage(page_number, canvas); 219 return instance_->PrintPage(page_number, canvas);
216 } 220 }
217 221
218 void WebPluginImpl::printEnd() { 222 void WebPluginImpl::printEnd() {
219 return instance_->PrintEnd(); 223 return instance_->PrintEnd();
220 } 224 }
221 225
222 } // namespace pepper 226 } // namespace pepper
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698