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

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

Issue 6614030: Revert 76840 - Removed GPU plugin.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/plugin/command_buffer_stub.cc ('k') | chrome/plugin/plugin_main.cc » ('j') | 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) 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 #include <windows.h> 5 #include <windows.h>
6 6
7 #include "chrome/plugin/command_buffer_stub.h" 7 #include "chrome/plugin/command_buffer_stub.h"
8 8
9 namespace { 9 namespace {
10 const wchar_t* kPreviousWndProcProperty = L"CommandBufferStubPrevWndProc"; 10 const wchar_t* kPreviousWndProcProperty = L"CommandBufferStubPrevWndProc";
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 void CommandBufferStub::DestroyPlatformSpecific() { 65 void CommandBufferStub::DestroyPlatformSpecific() {
66 // Restore window. 66 // Restore window.
67 WNDPROC previous_wnd_proc = reinterpret_cast<WNDPROC>( 67 WNDPROC previous_wnd_proc = reinterpret_cast<WNDPROC>(
68 ::GetProp(window_, kPreviousWndProcProperty)); 68 ::GetProp(window_, kPreviousWndProcProperty));
69 ::SetWindowLongPtr(window_, GWLP_WNDPROC, reinterpret_cast<LONG_PTR>( 69 ::SetWindowLongPtr(window_, GWLP_WNDPROC, reinterpret_cast<LONG_PTR>(
70 previous_wnd_proc)); 70 previous_wnd_proc));
71 ::RemoveProp(window_, kPreviousWndProcProperty); 71 ::RemoveProp(window_, kPreviousWndProcProperty);
72 ::RemoveProp(window_, kCommandBufferStubProperty); 72 ::RemoveProp(window_, kCommandBufferStubProperty);
73 } 73 }
OLDNEW
« no previous file with comments | « chrome/plugin/command_buffer_stub.cc ('k') | chrome/plugin/plugin_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698