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

Side by Side Diff: content/renderer/pepper/pepper_graphics_2d_host.h

Issue 252663002: Track plugin input event latency (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix win & mac build Created 6 years, 7 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_RENDERER_PEPPER_PEPPER_GRAPHICS_2D_HOST_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_GRAPHICS_2D_HOST_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_GRAPHICS_2D_HOST_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_GRAPHICS_2D_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "ppapi/c/ppb_graphics_2d.h" 14 #include "ppapi/c/ppb_graphics_2d.h"
15 #include "ppapi/host/host_message_context.h" 15 #include "ppapi/host/host_message_context.h"
16 #include "ppapi/host/resource_host.h" 16 #include "ppapi/host/resource_host.h"
17 #include "third_party/WebKit/public/platform/WebCanvas.h" 17 #include "third_party/WebKit/public/platform/WebCanvas.h"
18 #include "ui/events/latency_info.h"
18 #include "ui/gfx/point.h" 19 #include "ui/gfx/point.h"
19 #include "ui/gfx/size.h" 20 #include "ui/gfx/size.h"
20 21
21 namespace cc { 22 namespace cc {
22 class SingleReleaseCallback; 23 class SingleReleaseCallback;
23 class TextureMailbox; 24 class TextureMailbox;
24 } 25 }
25 26
26 namespace gfx { 27 namespace gfx {
27 class Rect; 28 class Rect;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 const ppapi::HostResource& image_data, 99 const ppapi::HostResource& image_data,
99 const PP_Point& top_left, 100 const PP_Point& top_left,
100 bool src_rect_specified, 101 bool src_rect_specified,
101 const PP_Rect& src_rect); 102 const PP_Rect& src_rect);
102 int32_t OnHostMsgScroll(ppapi::host::HostMessageContext* context, 103 int32_t OnHostMsgScroll(ppapi::host::HostMessageContext* context,
103 bool clip_specified, 104 bool clip_specified,
104 const PP_Rect& clip, 105 const PP_Rect& clip,
105 const PP_Point& amount); 106 const PP_Point& amount);
106 int32_t OnHostMsgReplaceContents(ppapi::host::HostMessageContext* context, 107 int32_t OnHostMsgReplaceContents(ppapi::host::HostMessageContext* context,
107 const ppapi::HostResource& image_data); 108 const ppapi::HostResource& image_data);
108 int32_t OnHostMsgFlush(ppapi::host::HostMessageContext* context); 109 int32_t OnHostMsgFlush(ppapi::host::HostMessageContext* context,
110 const std::vector<ui::LatencyInfo>& latency_info);
109 int32_t OnHostMsgSetScale(ppapi::host::HostMessageContext* context, 111 int32_t OnHostMsgSetScale(ppapi::host::HostMessageContext* context,
110 float scale); 112 float scale);
111 int32_t OnHostMsgReadImageData(ppapi::host::HostMessageContext* context, 113 int32_t OnHostMsgReadImageData(ppapi::host::HostMessageContext* context,
112 PP_Resource image, 114 PP_Resource image,
113 const PP_Point& top_left); 115 const PP_Point& top_left);
114 116
115 // If |old_image_data| is not NULL, a previous used ImageData object will be 117 // If |old_image_data| is not NULL, a previous used ImageData object will be
116 // reused. This is used by ReplaceContents. 118 // reused. This is used by ReplaceContents.
117 int32_t Flush(PP_Resource* old_image_data); 119 int32_t Flush(PP_Resource* old_image_data);
118 120
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 bool texture_mailbox_modified_; 193 bool texture_mailbox_modified_;
192 bool is_using_texture_layer_; 194 bool is_using_texture_layer_;
193 195
194 friend class PepperGraphics2DHostTest; 196 friend class PepperGraphics2DHostTest;
195 DISALLOW_COPY_AND_ASSIGN(PepperGraphics2DHost); 197 DISALLOW_COPY_AND_ASSIGN(PepperGraphics2DHost);
196 }; 198 };
197 199
198 } // namespace content 200 } // namespace content
199 201
200 #endif // CONTENT_RENDERER_PEPPER_PEPPER_GRAPHICS_2D_HOST_H_ 202 #endif // CONTENT_RENDERER_PEPPER_PEPPER_GRAPHICS_2D_HOST_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | content/renderer/pepper/pepper_graphics_2d_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698