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

Side by Side Diff: content/common/gpu/client/command_buffer_proxy_impl.h

Issue 9910004: Implement Discard and EnsureBackbufferCHROMIUM using command buffer instead of IPC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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) 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 CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(ENABLE_GPU) 9 #if defined(ENABLE_GPU)
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual ~CommandBufferProxyImpl(); 46 virtual ~CommandBufferProxyImpl();
47 47
48 // IPC::Channel::Listener implementation: 48 // IPC::Channel::Listener implementation:
49 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 49 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
50 virtual void OnChannelError() OVERRIDE; 50 virtual void OnChannelError() OVERRIDE;
51 51
52 // CommandBufferProxy implementation: 52 // CommandBufferProxy implementation:
53 virtual int GetRouteID() const OVERRIDE; 53 virtual int GetRouteID() const OVERRIDE;
54 virtual bool Echo(const base::Closure& callback) OVERRIDE; 54 virtual bool Echo(const base::Closure& callback) OVERRIDE;
55 virtual bool SetSurfaceVisible(bool visible) OVERRIDE; 55 virtual bool SetSurfaceVisible(bool visible) OVERRIDE;
56 virtual bool DiscardBackbuffer() OVERRIDE;
57 virtual bool EnsureBackbuffer() OVERRIDE;
58 virtual void SetMemoryAllocationChangedCallback( 56 virtual void SetMemoryAllocationChangedCallback(
59 const base::Callback<void(const GpuMemoryAllocationForRenderer&)>& 57 const base::Callback<void(const GpuMemoryAllocationForRenderer&)>&
60 callback) OVERRIDE; 58 callback) OVERRIDE;
61 virtual bool SetParent(CommandBufferProxy* parent_command_buffer, 59 virtual bool SetParent(CommandBufferProxy* parent_command_buffer,
62 uint32 parent_texture_id) OVERRIDE; 60 uint32 parent_texture_id) OVERRIDE;
63 virtual void SetChannelErrorCallback(const base::Closure& callback) OVERRIDE; 61 virtual void SetChannelErrorCallback(const base::Closure& callback) OVERRIDE;
64 virtual void SetNotifyRepaintTask(const base::Closure& callback) OVERRIDE; 62 virtual void SetNotifyRepaintTask(const base::Closure& callback) OVERRIDE;
65 virtual scoped_refptr<GpuVideoDecodeAcceleratorHost> CreateVideoDecoder( 63 virtual scoped_refptr<GpuVideoDecodeAcceleratorHost> CreateVideoDecoder(
66 media::VideoDecodeAccelerator::Profile profile, 64 media::VideoDecodeAccelerator::Profile profile,
67 media::VideoDecodeAccelerator::Client* client) OVERRIDE; 65 media::VideoDecodeAccelerator::Client* client) OVERRIDE;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 memory_allocation_changed_callback_; 143 memory_allocation_changed_callback_;
146 144
147 GpuConsoleMessageCallback console_message_callback_; 145 GpuConsoleMessageCallback console_message_callback_;
148 146
149 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); 147 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl);
150 }; 148 };
151 149
152 #endif // ENABLE_GPU 150 #endif // ENABLE_GPU
153 151
154 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 152 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
OLDNEW
« no previous file with comments | « content/common/gpu/client/command_buffer_proxy.h ('k') | content/common/gpu/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698