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

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

Issue 100443006: Remove some LatencyInfo merging code path (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix android/mac build Created 6 years, 11 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
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 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 void SetMemoryAllocationChangedCallback( 124 void SetMemoryAllocationChangedCallback(
125 const MemoryAllocationChangedCallback& callback); 125 const MemoryAllocationChangedCallback& callback);
126 void AddDeletionObserver(DeletionObserver* observer); 126 void AddDeletionObserver(DeletionObserver* observer);
127 void RemoveDeletionObserver(DeletionObserver* observer); 127 void RemoveDeletionObserver(DeletionObserver* observer);
128 128
129 bool EnsureBackbuffer(); 129 bool EnsureBackbuffer();
130 130
131 void SetOnConsoleMessageCallback( 131 void SetOnConsoleMessageCallback(
132 const GpuConsoleMessageCallback& callback); 132 const GpuConsoleMessageCallback& callback);
133 133
134 void SetLatencyInfo(const ui::LatencyInfo& latency_info); 134 void SetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info);
135 135
136 // TODO(apatrick): this is a temporary optimization while skia is calling 136 // TODO(apatrick): this is a temporary optimization while skia is calling
137 // ContentGLContext::MakeCurrent prior to every GL call. It saves returning 6 137 // ContentGLContext::MakeCurrent prior to every GL call. It saves returning 6
138 // ints redundantly when only the error is needed for the 138 // ints redundantly when only the error is needed for the
139 // CommandBufferProxyImpl implementation. 139 // CommandBufferProxyImpl implementation.
140 virtual gpu::error::Error GetLastError() OVERRIDE; 140 virtual gpu::error::Error GetLastError() OVERRIDE;
141 141
142 GpuChannelHost* channel() const { return channel_; } 142 GpuChannelHost* channel() const { return channel_; }
143 143
144 private: 144 private:
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 GpuMemoryBufferMap gpu_memory_buffers_; 205 GpuMemoryBufferMap gpu_memory_buffers_;
206 206
207 gpu::Capabilities capabilities_; 207 gpu::Capabilities capabilities_;
208 208
209 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); 209 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl);
210 }; 210 };
211 211
212 } // namespace content 212 } // namespace content
213 213
214 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 214 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.mm ('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