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

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

Issue 14999012: Move cc/debug/latency_info to ui/base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, float scale_factor) OVERRIDE; 57 virtual void OnResize(gfx::Size size, float scale_factor) OVERRIDE;
58 virtual void SetLatencyInfo( 58 virtual void SetLatencyInfo(
59 const cc::LatencyInfo& latency_info) OVERRIDE; 59 const ui::LatencyInfo& latency_info) OVERRIDE;
60 60
61 // GpuCommandBufferStub::DestructionObserver implementation. 61 // GpuCommandBufferStub::DestructionObserver implementation.
62 virtual void OnWillDestroyStub() OVERRIDE; 62 virtual void OnWillDestroyStub() OVERRIDE;
63 63
64 private: 64 private:
65 65
66 gfx::Size backbuffer_size() const { 66 gfx::Size backbuffer_size() const {
67 return gfx::Size(backbuffer_->level_infos()[0][0].width, 67 return gfx::Size(backbuffer_->level_infos()[0][0].width,
68 backbuffer_->level_infos()[0][0].height); 68 backbuffer_->level_infos()[0][0].height);
69 } 69 }
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 // Whether a SwapBuffers is pending. 114 // Whether a SwapBuffers is pending.
115 bool is_swap_buffers_pending_; 115 bool is_swap_buffers_pending_;
116 116
117 // Whether we unscheduled command buffer because of pending SwapBuffers. 117 // Whether we unscheduled command buffer because of pending SwapBuffers.
118 bool did_unschedule_; 118 bool did_unschedule_;
119 119
120 // Holds a reference to the mailbox manager for cleanup. 120 // Holds a reference to the mailbox manager for cleanup.
121 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; 121 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_;
122 122
123 cc::LatencyInfo latency_info_; 123 ui::LatencyInfo latency_info_;
124 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface); 124 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface);
125 }; 125 };
126 126
127 } // namespace content 127 } // namespace content
128 128
129 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ 129 #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