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

Side by Side Diff: content/common/gpu/texture_image_transport_surface.h

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 #ifndef CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ 5 #ifndef CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_
6 #define CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ 6 #define CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual void* GetShareHandle() OVERRIDE; 46 virtual void* GetShareHandle() OVERRIDE;
47 virtual void* GetDisplay() OVERRIDE; 47 virtual void* GetDisplay() OVERRIDE;
48 virtual void* GetConfig() OVERRIDE; 48 virtual void* GetConfig() OVERRIDE;
49 49
50 protected: 50 protected:
51 // ImageTransportSurface implementation. 51 // ImageTransportSurface implementation.
52 virtual void OnBufferPresented( 52 virtual void OnBufferPresented(
53 const AcceleratedSurfaceMsg_BufferPresented_Params& params) OVERRIDE; 53 const AcceleratedSurfaceMsg_BufferPresented_Params& params) OVERRIDE;
54 virtual void OnResizeViewACK() OVERRIDE; 54 virtual void OnResizeViewACK() OVERRIDE;
55 virtual void OnResize(gfx::Size size) OVERRIDE; 55 virtual void OnResize(gfx::Size size) OVERRIDE;
56 virtual void SetLatencyInfo(
57 const cc::LatencyInfo& latency_info) OVERRIDE;
56 58
57 // GpuCommandBufferStub::DestructionObserver implementation. 59 // GpuCommandBufferStub::DestructionObserver implementation.
58 virtual void OnWillDestroyStub(GpuCommandBufferStub* stub) OVERRIDE; 60 virtual void OnWillDestroyStub(GpuCommandBufferStub* stub) OVERRIDE;
59 61
60 private: 62 private:
61 // A texture backing the front/back buffer. 63 // A texture backing the front/back buffer.
62 struct Texture { 64 struct Texture {
63 Texture(); 65 Texture();
64 ~Texture(); 66 ~Texture();
65 67
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 113
112 // Whether a SwapBuffers is pending. 114 // Whether a SwapBuffers is pending.
113 bool is_swap_buffers_pending_; 115 bool is_swap_buffers_pending_;
114 116
115 // Whether we unscheduled command buffer because of pending SwapBuffers. 117 // Whether we unscheduled command buffer because of pending SwapBuffers.
116 bool did_unschedule_; 118 bool did_unschedule_;
117 119
118 // Holds a reference to the mailbox manager for cleanup. 120 // Holds a reference to the mailbox manager for cleanup.
119 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; 121 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_;
120 122
123 cc::LatencyInfo latency_info_;
121 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface); 124 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface);
122 }; 125 };
123 126
124 } // namespace content 127 } // namespace content
125 128
126 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ 129 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698