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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_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_RENDER_WIDGET_HOST_VIEW_MAC_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 // Sends completed plugin IME notification and text back to the renderer. 337 // Sends completed plugin IME notification and text back to the renderer.
338 void PluginImeCompositionCompleted(const base::string16& text, int plugin_id); 338 void PluginImeCompositionCompleted(const base::string16& text, int plugin_id);
339 339
340 const std::string& selected_text() const { return selected_text_; } 340 const std::string& selected_text() const { return selected_text_; }
341 341
342 // Update the IOSurface to be drawn and call setNeedsDisplay on 342 // Update the IOSurface to be drawn and call setNeedsDisplay on
343 // |cocoa_view_|. 343 // |cocoa_view_|.
344 void CompositorSwapBuffers(uint64 surface_handle, 344 void CompositorSwapBuffers(uint64 surface_handle,
345 const gfx::Size& size, 345 const gfx::Size& size,
346 float scale_factor, 346 float scale_factor,
347 const ui::LatencyInfo& latency_info); 347 const std::vector<ui::LatencyInfo>& latency_info);
348 348
349 // Draw the IOSurface by making its context current to this view. 349 // Draw the IOSurface by making its context current to this view.
350 bool DrawIOSurfaceWithoutCoreAnimation(); 350 bool DrawIOSurfaceWithoutCoreAnimation();
351 351
352 // Called when a GPU error is detected. Deletes all compositing state. 352 // Called when a GPU error is detected. Deletes all compositing state.
353 void GotAcceleratedCompositingError(); 353 void GotAcceleratedCompositingError();
354 354
355 // Sets the overlay view, which should be drawn in the same IOSurface 355 // Sets the overlay view, which should be drawn in the same IOSurface
356 // atop of this view, if both views are drawing accelerated content. 356 // atop of this view, if both views are drawing accelerated content.
357 // Overlay is stored as a weak ptr. 357 // Overlay is stored as a weak ptr.
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; 559 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_;
560 560
561 base::WeakPtrFactory<RenderWidgetHostViewMac> 561 base::WeakPtrFactory<RenderWidgetHostViewMac>
562 software_frame_weak_ptr_factory_; 562 software_frame_weak_ptr_factory_;
563 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 563 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
564 }; 564 };
565 565
566 } // namespace content 566 } // namespace content
567 567
568 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 568 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698