| OLD | NEW |
| 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/ppb_graphics_3d_impl.h" | 5 #include "webkit/plugins/ppapi/ppb_graphics_3d_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 160 |
| 161 uint32_t PPB_Graphics3D_Impl::InsertSyncPoint() { | 161 uint32_t PPB_Graphics3D_Impl::InsertSyncPoint() { |
| 162 return GetCommandBuffer()->InsertSyncPoint(); | 162 return GetCommandBuffer()->InsertSyncPoint(); |
| 163 } | 163 } |
| 164 | 164 |
| 165 bool PPB_Graphics3D_Impl::BindToInstance(bool bind) { | 165 bool PPB_Graphics3D_Impl::BindToInstance(bool bind) { |
| 166 bound_to_instance_ = bind; | 166 bound_to_instance_ = bind; |
| 167 return true; | 167 return true; |
| 168 } | 168 } |
| 169 | 169 |
| 170 unsigned int PPB_Graphics3D_Impl::GetBackingTextureId() { | |
| 171 return platform_context_->GetBackingTextureId(); | |
| 172 } | |
| 173 | |
| 174 bool PPB_Graphics3D_Impl::IsOpaque() { | 170 bool PPB_Graphics3D_Impl::IsOpaque() { |
| 175 return platform_context_->IsOpaque(); | 171 return platform_context_->IsOpaque(); |
| 176 } | 172 } |
| 177 | 173 |
| 178 void PPB_Graphics3D_Impl::ViewWillInitiatePaint() { | 174 void PPB_Graphics3D_Impl::ViewWillInitiatePaint() { |
| 179 } | 175 } |
| 180 | 176 |
| 181 void PPB_Graphics3D_Impl::ViewInitiatedPaint() { | 177 void PPB_Graphics3D_Impl::ViewInitiatedPaint() { |
| 182 commit_pending_ = false; | 178 commit_pending_ = false; |
| 183 | 179 |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 const PPP_Graphics3D* ppp_graphics_3d = | 319 const PPP_Graphics3D* ppp_graphics_3d = |
| 324 static_cast<const PPP_Graphics3D*>( | 320 static_cast<const PPP_Graphics3D*>( |
| 325 instance->module()->GetPluginInterface( | 321 instance->module()->GetPluginInterface( |
| 326 PPP_GRAPHICS_3D_INTERFACE)); | 322 PPP_GRAPHICS_3D_INTERFACE)); |
| 327 if (ppp_graphics_3d) | 323 if (ppp_graphics_3d) |
| 328 ppp_graphics_3d->Graphics3DContextLost(this_pp_instance); | 324 ppp_graphics_3d->Graphics3DContextLost(this_pp_instance); |
| 329 } | 325 } |
| 330 | 326 |
| 331 } // namespace ppapi | 327 } // namespace ppapi |
| 332 } // namespace webkit | 328 } // namespace webkit |
| OLD | NEW |