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

Side by Side Diff: content/common/gpu/client/command_buffer_proxy.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
« no previous file with comments | « no previous file | content/common/gpu/client/command_buffer_proxy_impl.h » ('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 CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_H_
6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_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 21 matching lines...) Expand all
32 32
33 virtual int GetRouteID() const = 0; 33 virtual int GetRouteID() const = 0;
34 34
35 // Invoke the task when the channel has been flushed. Takes care of deleting 35 // Invoke the task when the channel has been flushed. Takes care of deleting
36 // the task whether the echo succeeds or not. 36 // the task whether the echo succeeds or not.
37 virtual bool Echo(const base::Closure& callback) = 0; 37 virtual bool Echo(const base::Closure& callback) = 0;
38 38
39 // Sends an IPC message with the new state of surface visibility. 39 // Sends an IPC message with the new state of surface visibility.
40 virtual bool SetSurfaceVisible(bool visible) = 0; 40 virtual bool SetSurfaceVisible(bool visible) = 0;
41 41
42 virtual bool DiscardBackbuffer() = 0;
43 virtual bool EnsureBackbuffer() = 0;
44
45 // Register a callback to invoke whenever we recieve a new memory allocation. 42 // Register a callback to invoke whenever we recieve a new memory allocation.
46 virtual void SetMemoryAllocationChangedCallback( 43 virtual void SetMemoryAllocationChangedCallback(
47 const base::Callback<void(const GpuMemoryAllocationForRenderer&)>& 44 const base::Callback<void(const GpuMemoryAllocationForRenderer&)>&
48 callback) = 0; 45 callback) = 0;
49 46
50 // Reparent a command buffer. TODO(apatrick): going forward, the notion of 47 // Reparent a command buffer. TODO(apatrick): going forward, the notion of
51 // the parent / child relationship between command buffers is going away in 48 // the parent / child relationship between command buffers is going away in
52 // favor of the notion of surfaces that can be drawn to in one command buffer 49 // favor of the notion of surfaces that can be drawn to in one command buffer
53 // and bound as a texture in any other. 50 // and bound as a texture in any other.
54 virtual bool SetParent(CommandBufferProxy* parent_command_buffer, 51 virtual bool SetParent(CommandBufferProxy* parent_command_buffer,
(...skipping 18 matching lines...) Expand all
73 virtual void SetOnConsoleMessageCallback( 70 virtual void SetOnConsoleMessageCallback(
74 const GpuConsoleMessageCallback& callback) = 0; 71 const GpuConsoleMessageCallback& callback) = 0;
75 72
76 private: 73 private:
77 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy); 74 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy);
78 }; 75 };
79 76
80 #endif // ENABLE_GPU 77 #endif // ENABLE_GPU
81 78
82 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_H_ 79 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/client/command_buffer_proxy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698