| OLD | NEW | 
|---|
| 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 #include "content/renderer/render_widget_fullscreen_pepper.h" | 5 #include "content/renderer/render_widget_fullscreen_pepper.h" | 
| 6 | 6 | 
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" | 
| 8 #include "content/common/view_messages.h" | 8 #include "content/common/view_messages.h" | 
| 9 #include "content/renderer/gpu/renderer_gl_context.h" | 9 #include "content/renderer/gpu/renderer_gl_context.h" | 
| 10 #include "content/renderer/gpu/gpu_channel_host.h" | 10 #include "content/renderer/gpu/gpu_channel_host.h" | 
| (...skipping 25 matching lines...) Expand all  Loading... | 
| 36 // WebWidget that simply wraps the pepper plugin. | 36 // WebWidget that simply wraps the pepper plugin. | 
| 37 class PepperWidget : public WebWidget { | 37 class PepperWidget : public WebWidget { | 
| 38  public: | 38  public: | 
| 39   PepperWidget(webkit::ppapi::PluginInstance* plugin, | 39   PepperWidget(webkit::ppapi::PluginInstance* plugin, | 
| 40                RenderWidgetFullscreenPepper* widget) | 40                RenderWidgetFullscreenPepper* widget) | 
| 41       : plugin_(plugin), | 41       : plugin_(plugin), | 
| 42         widget_(widget), | 42         widget_(widget), | 
| 43         cursor_(WebCursorInfo::TypePointer) { | 43         cursor_(WebCursorInfo::TypePointer) { | 
| 44   } | 44   } | 
| 45 | 45 | 
|  | 46   virtual ~PepperWidget() {} | 
|  | 47 | 
| 46   // WebWidget API | 48   // WebWidget API | 
| 47   virtual void close() { | 49   virtual void close() { | 
| 48     delete this; | 50     delete this; | 
| 49   } | 51   } | 
| 50 | 52 | 
| 51   virtual WebSize size() { | 53   virtual WebSize size() { | 
| 52     return size_; | 54     return size_; | 
| 53   } | 55   } | 
| 54 | 56 | 
| 55   virtual void resize(const WebSize& size) { | 57   virtual void resize(const WebSize& size) { | 
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 469       NewRunnableFunction(DestroyContext, context_, program_, buffer_)); | 471       NewRunnableFunction(DestroyContext, context_, program_, buffer_)); | 
| 470   context_ = NULL; | 472   context_ = NULL; | 
| 471   program_ = 0; | 473   program_ = 0; | 
| 472   buffer_ = 0; | 474   buffer_ = 0; | 
| 473   OnSwapBuffersAborted(); | 475   OnSwapBuffersAborted(); | 
| 474 } | 476 } | 
| 475 | 477 | 
| 476 void RenderWidgetFullscreenPepper::OnSwapBuffersCompleteByRendererGLContext() { | 478 void RenderWidgetFullscreenPepper::OnSwapBuffersCompleteByRendererGLContext() { | 
| 477   OnSwapBuffersComplete(); | 479   OnSwapBuffersComplete(); | 
| 478 } | 480 } | 
| OLD | NEW | 
|---|