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

Side by Side Diff: webkit/plugins/ppapi/ppapi_plugin_instance.cc

Issue 12374028: Allow WebExternalTextureLayerClient to work with mailboxes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Linker Fix Created 7 years, 8 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
« no previous file with comments | « webkit/plugins/ppapi/ppapi_plugin_instance.h ('k') | no next file » | 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 "webkit/plugins/ppapi/ppapi_plugin_instance.h" 5 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 2088 matching lines...) Expand 10 before | Expand all | Expand 10 after
2099 unsigned PluginInstance::PrepareTexture(cc::ResourceUpdateQueue* queue) { 2099 unsigned PluginInstance::PrepareTexture(cc::ResourceUpdateQueue* queue) {
2100 return GetBackingTextureId(); 2100 return GetBackingTextureId();
2101 } 2101 }
2102 2102
2103 WebKit::WebGraphicsContext3D* PluginInstance::Context3d() { 2103 WebKit::WebGraphicsContext3D* PluginInstance::Context3d() {
2104 DCHECK(bound_graphics_3d_.get()); 2104 DCHECK(bound_graphics_3d_.get());
2105 DCHECK(bound_graphics_3d_->platform_context()); 2105 DCHECK(bound_graphics_3d_->platform_context());
2106 return bound_graphics_3d_->platform_context()->GetParentContext(); 2106 return bound_graphics_3d_->platform_context()->GetParentContext();
2107 } 2107 }
2108 2108
2109 bool PluginInstance::PrepareTextureMailbox(cc::TextureMailbox* mailbox) {
2110 return false;
2111 }
2112
2109 void PluginInstance::NumberOfFindResultsChanged(PP_Instance instance, 2113 void PluginInstance::NumberOfFindResultsChanged(PP_Instance instance,
2110 int32_t total, 2114 int32_t total,
2111 PP_Bool final_result) { 2115 PP_Bool final_result) {
2112 DCHECK_NE(find_identifier_, -1); 2116 DCHECK_NE(find_identifier_, -1);
2113 delegate_->NumberOfFindResultsChanged(find_identifier_, total, 2117 delegate_->NumberOfFindResultsChanged(find_identifier_, total,
2114 PP_ToBool(final_result)); 2118 PP_ToBool(final_result));
2115 } 2119 }
2116 2120
2117 void PluginInstance::SelectedFindResultChanged(PP_Instance instance, 2121 void PluginInstance::SelectedFindResultChanged(PP_Instance instance,
2118 int32_t index) { 2122 int32_t index) {
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
2508 screen_size_for_fullscreen_ = gfx::Size(); 2512 screen_size_for_fullscreen_ = gfx::Size();
2509 WebElement element = container_->element(); 2513 WebElement element = container_->element();
2510 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_); 2514 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_);
2511 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_); 2515 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_);
2512 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_); 2516 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_);
2513 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_); 2517 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_);
2514 } 2518 }
2515 2519
2516 } // namespace ppapi 2520 } // namespace ppapi
2517 } // namespace webkit 2521 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppapi_plugin_instance.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698