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

Side by Side Diff: content/browser/renderer_host/compositing_iosurface_mac.h

Issue 123563002: Remove gpu side LatencyInfo merging (Closed) Base URL: http://git.chromium.org/chromium/src.git@gpu-per-event-latency-6-small
Patch Set: fix mac_rel compiler error. Move kMaxLatencyInfoNumber to .cc file Created 6 years, 11 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_BROWSER_RENDERER_HOST_COMPOSITING_IOSURFACE_MAC_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITING_IOSURFACE_MAC_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITING_IOSURFACE_MAC_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITING_IOSURFACE_MAC_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 class CompositingIOSurfaceMac { 46 class CompositingIOSurfaceMac {
47 public: 47 public:
48 // Returns NULL if IOSurface support is missing or GL APIs fail. 48 // Returns NULL if IOSurface support is missing or GL APIs fail.
49 static CompositingIOSurfaceMac* Create(); 49 static CompositingIOSurfaceMac* Create();
50 ~CompositingIOSurfaceMac(); 50 ~CompositingIOSurfaceMac();
51 51
52 // Set IOSurface that will be drawn on the next NSView drawRect. 52 // Set IOSurface that will be drawn on the next NSView drawRect.
53 bool SetIOSurface(uint64 io_surface_handle, 53 bool SetIOSurface(uint64 io_surface_handle,
54 const gfx::Size& size, 54 const gfx::Size& size,
55 float scale_factor, 55 float scale_factor,
56 const ui::LatencyInfo& latency_info); 56 const std::vector<ui::LatencyInfo>& latency_info);
57 57
58 // Get the CGL renderer ID currently associated with this context. 58 // Get the CGL renderer ID currently associated with this context.
59 int GetRendererID(); 59 int GetRendererID();
60 60
61 // Blit the IOSurface to the rectangle specified by |window_rect| in DIPs, 61 // Blit the IOSurface to the rectangle specified by |window_rect| in DIPs,
62 // with the origin in the lower left corner. If the window rect's size is 62 // with the origin in the lower left corner. If the window rect's size is
63 // larger than the IOSurface, the remaining right and bottom edges will be 63 // larger than the IOSurface, the remaining right and bottom edges will be
64 // white. |window_scale_factor| is 1 in normal views, 2 in HiDPI views. 64 // white. |window_scale_factor| is 1 in normal views, 2 in HiDPI views.
65 // |frame_subscriber| listens to this draw event and provides output buffer 65 // |frame_subscriber| listens to this draw event and provides output buffer
66 // for copying this frame into. 66 // for copying this frame into.
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 base::Lock lock_; 338 base::Lock lock_;
339 339
340 // Vsync timing data. 340 // Vsync timing data.
341 base::TimeTicks vsync_timebase_; 341 base::TimeTicks vsync_timebase_;
342 uint32 vsync_interval_numerator_; 342 uint32 vsync_interval_numerator_;
343 uint32 vsync_interval_denominator_; 343 uint32 vsync_interval_denominator_;
344 344
345 // Error saved by GetAndSaveGLError 345 // Error saved by GetAndSaveGLError
346 GLint gl_error_; 346 GLint gl_error_;
347 347
348 ui::LatencyInfo latency_info_; 348 std::vector<ui::LatencyInfo> latency_info_;
349 }; 349 };
350 350
351 } // namespace content 351 } // namespace content
352 352
353 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITING_IOSURFACE_MAC_H_ 353 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITING_IOSURFACE_MAC_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host_ui_shim.cc ('k') | content/browser/renderer_host/compositing_iosurface_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698