OLD | NEW |
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 #import <OpenGL/OpenGL.h> | 5 #import <OpenGL/OpenGL.h> |
6 | 6 |
7 #include "chrome/plugin/webplugin_accelerated_surface_proxy_mac.h" | 7 #include "chrome/plugin/webplugin_accelerated_surface_proxy_mac.h" |
8 | 8 |
9 #include "app/surface/accelerated_surface_mac.h" | 9 #include "app/surface/accelerated_surface_mac.h" |
10 #include "app/surface/transport_dib.h" | 10 #include "app/surface/transport_dib.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 return surface_->context(); | 52 return surface_->context(); |
53 } | 53 } |
54 | 54 |
55 void WebPluginAcceleratedSurfaceProxy::StartDrawing() { | 55 void WebPluginAcceleratedSurfaceProxy::StartDrawing() { |
56 surface_->MakeCurrent(); | 56 surface_->MakeCurrent(); |
57 surface_->Clear(gfx::Rect(surface_->GetSize())); | 57 surface_->Clear(gfx::Rect(surface_->GetSize())); |
58 } | 58 } |
59 | 59 |
60 void WebPluginAcceleratedSurfaceProxy::EndDrawing() { | 60 void WebPluginAcceleratedSurfaceProxy::EndDrawing() { |
61 surface_->SwapBuffers(); | 61 surface_->SwapBuffers(); |
62 plugin_proxy_->AcceleratedFrameBuffersDidSwap(window_handle_); | 62 plugin_proxy_->AcceleratedFrameBuffersDidSwap( |
| 63 window_handle_, surface_->GetSurfaceId()); |
63 } | 64 } |
OLD | NEW |