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

Side by Side Diff: chrome/plugin/webplugin_accelerated_surface_proxy_mac.cc

Issue 4142004: Let every "accelerated IO surface swapped" message have an identifier of the surface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments 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 #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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698