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

Side by Side Diff: ppapi/proxy/ppapi_command_buffer_proxy.h

Issue 10387182: Browser Plugin: PpapiCommandBufferProxy should see a lost context if the embedder has deleted the P… (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated Created 8 years, 7 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 | « no previous file | ppapi/proxy/ppapi_command_buffer_proxy.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) 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 #ifndef PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ 5 #ifndef PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_
6 #define PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ 6 #define PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/hash_tables.h" 10 #include "base/hash_tables.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 size_t size, 59 size_t size,
60 int32 id_request); 60 int32 id_request);
61 virtual void DestroyTransferBuffer(int32 id); 61 virtual void DestroyTransferBuffer(int32 id);
62 virtual gpu::Buffer GetTransferBuffer(int32 handle); 62 virtual gpu::Buffer GetTransferBuffer(int32 handle);
63 virtual void SetToken(int32 token); 63 virtual void SetToken(int32 token);
64 virtual void SetParseError(gpu::error::Error error); 64 virtual void SetParseError(gpu::error::Error error);
65 virtual void SetContextLostReason(gpu::error::ContextLostReason reason); 65 virtual void SetContextLostReason(gpu::error::ContextLostReason reason);
66 66
67 private: 67 private:
68 bool Send(IPC::Message* msg); 68 bool Send(IPC::Message* msg);
69 void UpdateState(const gpu::CommandBuffer::State& state); 69 void UpdateState(const gpu::CommandBuffer::State& state, bool success);
70 70
71 typedef base::hash_map<int32, gpu::Buffer> TransferBufferMap; 71 typedef base::hash_map<int32, gpu::Buffer> TransferBufferMap;
72 TransferBufferMap transfer_buffers_; 72 TransferBufferMap transfer_buffers_;
73 73
74 State last_state_; 74 State last_state_;
75 75
76 HostResource resource_; 76 HostResource resource_;
77 ProxyChannel* channel_; 77 ProxyChannel* channel_;
78 78
79 base::Closure channel_error_callback_; 79 base::Closure channel_error_callback_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); 81 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy);
82 }; 82 };
83 83
84 } // namespace proxy 84 } // namespace proxy
85 } // namespace ppapi 85 } // namespace ppapi
86 86
87 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ 87 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_
OLDNEW
« no previous file with comments | « no previous file | ppapi/proxy/ppapi_command_buffer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698