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

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, 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_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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 virtual void* GetShareHandle() OVERRIDE; 48 virtual void* GetShareHandle() OVERRIDE;
49 virtual void* GetDisplay() OVERRIDE; 49 virtual void* GetDisplay() OVERRIDE;
50 virtual void* GetConfig() OVERRIDE; 50 virtual void* GetConfig() OVERRIDE;
51 51
52 protected: 52 protected:
53 // ImageTransportSurface implementation. 53 // ImageTransportSurface implementation.
54 virtual void OnBufferPresented( 54 virtual void OnBufferPresented(
55 const AcceleratedSurfaceMsg_BufferPresented_Params& params) OVERRIDE; 55 const AcceleratedSurfaceMsg_BufferPresented_Params& params) OVERRIDE;
56 virtual void OnResizeViewACK() OVERRIDE; 56 virtual void OnResizeViewACK() OVERRIDE;
57 virtual void OnResize(gfx::Size size) OVERRIDE; 57 virtual void OnResize(gfx::Size size) OVERRIDE;
58 virtual void SetLatencyInfo(
59 const cc::LatencyInfo& latency_info) OVERRIDE;
58 60
59 // GpuCommandBufferStub::DestructionObserver implementation. 61 // GpuCommandBufferStub::DestructionObserver implementation.
60 virtual void OnWillDestroyStub(GpuCommandBufferStub* stub) OVERRIDE; 62 virtual void OnWillDestroyStub(GpuCommandBufferStub* stub) OVERRIDE;
61 63
62 private: 64 private:
63 65
64 gfx::Size backbuffer_size() const { 66 gfx::Size backbuffer_size() const {
65 return gfx::Size(backbuffer_->level_infos()[0][0].width, 67 return gfx::Size(backbuffer_->level_infos()[0][0].width,
66 backbuffer_->level_infos()[0][0].height); 68 backbuffer_->level_infos()[0][0].height);
67 } 69 }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 112
111 // Whether a SwapBuffers is pending. 113 // Whether a SwapBuffers is pending.
112 bool is_swap_buffers_pending_; 114 bool is_swap_buffers_pending_;
113 115
114 // Whether we unscheduled command buffer because of pending SwapBuffers. 116 // Whether we unscheduled command buffer because of pending SwapBuffers.
115 bool did_unschedule_; 117 bool did_unschedule_;
116 118
117 // Holds a reference to the mailbox manager for cleanup. 119 // Holds a reference to the mailbox manager for cleanup.
118 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; 120 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_;
119 121
122 cc::LatencyInfo latency_info_;
120 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface); 123 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface);
121 }; 124 };
122 125
123 } // namespace content 126 } // namespace content
124 127
125 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ 128 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_
OLDNEW
« no previous file with comments | « content/common/gpu/image_transport_surface_win.cc ('k') | content/common/gpu/texture_image_transport_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698