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

Side by Side Diff: chrome/renderer/command_buffer_proxy.h

Issue 6557006: Moved creation of GPU transfer buffers into the browser process.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_RENDERER_COMMAND_BUFFER_PROXY_H_ 5 #ifndef CHROME_RENDERER_COMMAND_BUFFER_PROXY_H_
6 #define CHROME_RENDERER_COMMAND_BUFFER_PROXY_H_ 6 #define CHROME_RENDERER_COMMAND_BUFFER_PROXY_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(ENABLE_GPU) 9 #if defined(ENABLE_GPU)
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 int route_id() const { return route_id_; } 44 int route_id() const { return route_id_; }
45 45
46 // CommandBuffer implementation: 46 // CommandBuffer implementation:
47 virtual bool Initialize(int32 size); 47 virtual bool Initialize(int32 size);
48 virtual gpu::Buffer GetRingBuffer(); 48 virtual gpu::Buffer GetRingBuffer();
49 virtual State GetState(); 49 virtual State GetState();
50 virtual void Flush(int32 put_offset); 50 virtual void Flush(int32 put_offset);
51 virtual State FlushSync(int32 put_offset); 51 virtual State FlushSync(int32 put_offset);
52 virtual void SetGetOffset(int32 get_offset); 52 virtual void SetGetOffset(int32 get_offset);
53 virtual int32 CreateTransferBuffer(size_t size); 53 virtual int32 CreateTransferBuffer(size_t size);
54 virtual int32 RegisterTransferBuffer(base::SharedMemory* shared_memory,
55 size_t size);
54 virtual void DestroyTransferBuffer(int32 id); 56 virtual void DestroyTransferBuffer(int32 id);
55 virtual gpu::Buffer GetTransferBuffer(int32 handle); 57 virtual gpu::Buffer GetTransferBuffer(int32 handle);
56 virtual void SetToken(int32 token); 58 virtual void SetToken(int32 token);
57 virtual void SetParseError(gpu::error::Error error); 59 virtual void SetParseError(gpu::error::Error error);
58 virtual void OnSwapBuffers(); 60 virtual void OnSwapBuffers();
59 61
60 // Set a callback that will be invoked when the SwapBuffers call has been 62 // Set a callback that will be invoked when the SwapBuffers call has been
61 // issued. 63 // issued.
62 void SetSwapBuffersCallback(Callback0::Type* callback); 64 void SetSwapBuffersCallback(Callback0::Type* callback);
63 void SetChannelErrorCallback(Callback0::Type* callback); 65 void SetChannelErrorCallback(Callback0::Type* callback);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 121
120 scoped_ptr<Callback0::Type> swap_buffers_callback_; 122 scoped_ptr<Callback0::Type> swap_buffers_callback_;
121 scoped_ptr<Callback0::Type> channel_error_callback_; 123 scoped_ptr<Callback0::Type> channel_error_callback_;
122 124
123 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy); 125 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy);
124 }; 126 };
125 127
126 #endif // ENABLE_GPU 128 #endif // ENABLE_GPU
127 129
128 #endif // CHROME_RENDERER_COMMAND_BUFFER_PROXY_H_ 130 #endif // CHROME_RENDERER_COMMAND_BUFFER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698