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

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: addressed comments 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 virtual void Unselect() OVERRIDE; 133 virtual void Unselect() OVERRIDE;
134 virtual void UpdateTextDirection(blink::WebTextDirection direction) OVERRIDE; 134 virtual void UpdateTextDirection(blink::WebTextDirection direction) OVERRIDE;
135 virtual void NotifyTextDirection() OVERRIDE; 135 virtual void NotifyTextDirection() OVERRIDE;
136 virtual void Focus() OVERRIDE; 136 virtual void Focus() OVERRIDE;
137 virtual void Blur() OVERRIDE; 137 virtual void Blur() OVERRIDE;
138 virtual void SetActive(bool active) OVERRIDE; 138 virtual void SetActive(bool active) OVERRIDE;
139 virtual void CopyFromBackingStore( 139 virtual void CopyFromBackingStore(
140 const gfx::Rect& src_rect, 140 const gfx::Rect& src_rect,
141 const gfx::Size& accelerated_dst_size, 141 const gfx::Size& accelerated_dst_size,
142 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; 142 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE;
143 virtual bool CanCopyFromBackingStore() OVERRIDE;
144 #if defined(OS_ANDROID)
145 virtual void LockForCopyFromBackingStore() OVERRIDE;
146 virtual void UnlockForCopyFromBackingStore() OVERRIDE;
147 #endif
143 #if defined(TOOLKIT_GTK) 148 #if defined(TOOLKIT_GTK)
144 virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect, 149 virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect,
145 GdkWindow* target) OVERRIDE; 150 GdkWindow* target) OVERRIDE;
146 #elif defined(OS_MACOSX) 151 #elif defined(OS_MACOSX)
147 virtual gfx::Size GetBackingStoreSize() OVERRIDE; 152 virtual gfx::Size GetBackingStoreSize() OVERRIDE;
148 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect, 153 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect,
149 CGContextRef target) OVERRIDE; 154 CGContextRef target) OVERRIDE;
150 #endif 155 #endif
151 virtual void EnableFullAccessibilityMode() OVERRIDE; 156 virtual void EnableFullAccessibilityMode() OVERRIDE;
152 virtual void ForwardMouseEvent( 157 virtual void ForwardMouseEvent(
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; 946 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_;
942 947
943 int64 last_input_number_; 948 int64 last_input_number_;
944 949
945 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 950 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
946 }; 951 };
947 952
948 } // namespace content 953 } // namespace content
949 954
950 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 955 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698