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

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: added android-side change Created 6 years, 9 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 void LockForCopyFromBackingStore() OVERRIDE;
143 virtual void UnlockForCopyFromBackingStore() OVERRIDE;
142 #if defined(TOOLKIT_GTK) 144 #if defined(TOOLKIT_GTK)
143 virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect, 145 virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect,
144 GdkWindow* target) OVERRIDE; 146 GdkWindow* target) OVERRIDE;
145 #elif defined(OS_MACOSX) 147 #elif defined(OS_MACOSX)
146 virtual gfx::Size GetBackingStoreSize() OVERRIDE; 148 virtual gfx::Size GetBackingStoreSize() OVERRIDE;
147 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect, 149 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect,
148 CGContextRef target) OVERRIDE; 150 CGContextRef target) OVERRIDE;
149 #endif 151 #endif
150 virtual void EnableFullAccessibilityMode() OVERRIDE; 152 virtual void EnableFullAccessibilityMode() OVERRIDE;
151 virtual void ForwardMouseEvent( 153 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_; 934 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_;
933 935
934 int64 last_input_number_; 936 int64 last_input_number_;
935 937
936 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 938 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
937 }; 939 };
938 940
939 } // namespace content 941 } // namespace content
940 942
941 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 943 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698