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

Side by Side Diff: content/renderer/gpu/mailbox_output_surface.cc

Issue 12614013: Plumb cc::LatencyInfo through command buffer and output surface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 #include "content/renderer/gpu/mailbox_output_surface.h" 5 #include "content/renderer/gpu/mailbox_output_surface.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "cc/compositor_frame.h" 8 #include "cc/compositor_frame.h"
9 #include "cc/compositor_frame_ack.h" 9 #include "cc/compositor_frame_ack.h"
10 #include "cc/gl_frame_data.h" 10 #include "cc/gl_frame_data.h"
11 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h" 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h"
12 #include "third_party/khronos/GLES2/gl2.h" 12 #include "third_party/khronos/GLES2/gl2.h"
13 #include "third_party/khronos/GLES2/gl2ext.h" 13 #include "third_party/khronos/GLES2/gl2ext.h"
14 14
15 using cc::CompositorFrame; 15 using cc::CompositorFrame;
16 using cc::GLFrameData; 16 using cc::GLFrameData;
17 using gpu::Mailbox; 17 using gpu::Mailbox;
18 using WebKit::WebGraphicsContext3D; 18 using WebKit::WebGraphicsContext3D;
19 19
20 namespace content { 20 namespace content {
21 21
22 MailboxOutputSurface::MailboxOutputSurface( 22 MailboxOutputSurface::MailboxOutputSurface(
23 int32 routing_id, 23 int32 routing_id,
24 WebGraphicsContext3D* context3D, 24 WebGraphicsContext3D* context3D,
25 CommandBufferProxyImpl* proxy,
25 cc::SoftwareOutputDevice* software_device) 26 cc::SoftwareOutputDevice* software_device)
26 : CompositorOutputSurface(routing_id, 27 : CompositorOutputSurface(routing_id,
27 context3D, 28 context3D,
29 proxy,
piman 2013/03/19 04:30:29 Note: I don't think this will do what you want, si
28 software_device), 30 software_device),
29 fbo_(0) { 31 fbo_(0) {
30 } 32 }
31 33
32 MailboxOutputSurface::~MailboxOutputSurface() { 34 MailboxOutputSurface::~MailboxOutputSurface() {
33 DiscardBackbuffer(); 35 DiscardBackbuffer();
34 } 36 }
35 37
36 void MailboxOutputSurface::EnsureBackbuffer() { 38 void MailboxOutputSurface::EnsureBackbuffer() {
37 if (!current_backing_.texture_id) { 39 if (!current_backing_.texture_id) {
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 157
156 void MailboxOutputSurface::SwapBuffers() { 158 void MailboxOutputSurface::SwapBuffers() {
157 } 159 }
158 160
159 void MailboxOutputSurface::PostSubBuffer(gfx::Rect rect) { 161 void MailboxOutputSurface::PostSubBuffer(gfx::Rect rect) {
160 NOTIMPLEMENTED() 162 NOTIMPLEMENTED()
161 << "Partial swap not supported with composite-to-mailbox yet."; 163 << "Partial swap not supported with composite-to-mailbox yet.";
162 } 164 }
163 165
164 } // namespace content 166 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698