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

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

Issue 174323003: Expose locks for CopyFromCompositingSurface/CopyFromBackingStore API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: upload error Created 6 years, 10 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_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 virtual void Unselect() OVERRIDE; 132 virtual void Unselect() OVERRIDE;
133 virtual void UpdateTextDirection(blink::WebTextDirection direction) OVERRIDE; 133 virtual void UpdateTextDirection(blink::WebTextDirection direction) OVERRIDE;
134 virtual void NotifyTextDirection() OVERRIDE; 134 virtual void NotifyTextDirection() OVERRIDE;
135 virtual void Focus() OVERRIDE; 135 virtual void Focus() OVERRIDE;
136 virtual void Blur() OVERRIDE; 136 virtual void Blur() OVERRIDE;
137 virtual void SetActive(bool active) OVERRIDE; 137 virtual void SetActive(bool active) OVERRIDE;
138 virtual void CopyFromBackingStore( 138 virtual void CopyFromBackingStore(
139 const gfx::Rect& src_rect, 139 const gfx::Rect& src_rect,
140 const gfx::Size& accelerated_dst_size, 140 const gfx::Size& accelerated_dst_size,
141 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; 141 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE;
142 virtual bool CanCopyFromBackingStore() OVERRIDE;
143 virtual void LockForCopyFromBackingStore() OVERRIDE;
144 virtual void UnlockForCopyFromBackingStore() OVERRIDE;
142 #if defined(TOOLKIT_GTK) 145 #if defined(TOOLKIT_GTK)
143 virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect, 146 virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect,
144 GdkWindow* target) OVERRIDE; 147 GdkWindow* target) OVERRIDE;
145 #elif defined(OS_MACOSX) 148 #elif defined(OS_MACOSX)
146 virtual gfx::Size GetBackingStoreSize() OVERRIDE; 149 virtual gfx::Size GetBackingStoreSize() OVERRIDE;
147 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect, 150 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect,
148 CGContextRef target) OVERRIDE; 151 CGContextRef target) OVERRIDE;
149 #endif 152 #endif
150 virtual void EnableFullAccessibilityMode() OVERRIDE; 153 virtual void EnableFullAccessibilityMode() OVERRIDE;
151 virtual void ForwardMouseEvent( 154 virtual void ForwardMouseEvent(
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; 935 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_;
933 936
934 int64 last_input_number_; 937 int64 last_input_number_;
935 938
936 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 939 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
937 }; 940 };
938 941
939 } // namespace content 942 } // namespace content
940 943
941 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 944 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698