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

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

Issue 111063003: Aura: Don't create GL context for CreateSharedSurfaceHandle() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: try to make tests happy by still creating shared context 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 | 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 682
683 // Provides delegated frame updates to the cc::DelegatedRendererLayer. 683 // Provides delegated frame updates to the cc::DelegatedRendererLayer.
684 scoped_refptr<cc::DelegatedFrameProvider> frame_provider_; 684 scoped_refptr<cc::DelegatedFrameProvider> frame_provider_;
685 685
686 // The size of the last frame that was swapped (even if we skipped it). 686 // The size of the last frame that was swapped (even if we skipped it).
687 // Used to determine when the skipped_damage_ needs to be reset due to 687 // Used to determine when the skipped_damage_ needs to be reset due to
688 // size changes between front- and backbuffer. 688 // size changes between front- and backbuffer.
689 gfx::Size last_swapped_surface_size_; 689 gfx::Size last_swapped_surface_size_;
690 float last_swapped_surface_scale_factor_; 690 float last_swapped_surface_scale_factor_;
691 691
692 gfx::GLSurfaceHandle shared_surface_handle_;
693
694 // If non-NULL we're in OnPaint() and this is the supplied canvas. 692 // If non-NULL we're in OnPaint() and this is the supplied canvas.
695 gfx::Canvas* paint_canvas_; 693 gfx::Canvas* paint_canvas_;
696 694
697 // Used to record the last position of the mouse. 695 // Used to record the last position of the mouse.
698 // While the mouse is locked, they store the last known position just as mouse 696 // While the mouse is locked, they store the last known position just as mouse
699 // lock was entered. 697 // lock was entered.
700 // Relative to the upper-left corner of the view. 698 // Relative to the upper-left corner of the view.
701 gfx::Point unlocked_mouse_position_; 699 gfx::Point unlocked_mouse_position_;
702 // Relative to the upper-left corner of the screen. 700 // Relative to the upper-left corner of the screen.
703 gfx::Point unlocked_global_mouse_position_; 701 gfx::Point unlocked_global_mouse_position_;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 // passed to windowless plugins like Flash/Silverlight, etc as the 801 // passed to windowless plugins like Flash/Silverlight, etc as the
804 // container window. 802 // container window.
805 HWND plugin_parent_window_; 803 HWND plugin_parent_window_;
806 #endif 804 #endif
807 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 805 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
808 }; 806 };
809 807
810 } // namespace content 808 } // namespace content
811 809
812 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 810 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698