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

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

Issue 10349013: Prevent browser thumbnailer from trying to read from frontbuffer (surface texture) when none exists. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase for landing Created 8 years, 7 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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 // RenderWidgetHostView implementation. 55 // RenderWidgetHostView implementation.
56 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; 56 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE;
57 virtual content::RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; 57 virtual content::RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE;
58 virtual void SetSize(const gfx::Size& size) OVERRIDE; 58 virtual void SetSize(const gfx::Size& size) OVERRIDE;
59 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; 59 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE;
60 virtual gfx::NativeView GetNativeView() const OVERRIDE; 60 virtual gfx::NativeView GetNativeView() const OVERRIDE;
61 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; 61 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE;
62 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; 62 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE;
63 virtual bool HasFocus() const OVERRIDE; 63 virtual bool HasFocus() const OVERRIDE;
64 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE;
64 virtual void Show() OVERRIDE; 65 virtual void Show() OVERRIDE;
65 virtual void Hide() OVERRIDE; 66 virtual void Hide() OVERRIDE;
66 virtual bool IsShowing() OVERRIDE; 67 virtual bool IsShowing() OVERRIDE;
67 virtual gfx::Rect GetViewBounds() const OVERRIDE; 68 virtual gfx::Rect GetViewBounds() const OVERRIDE;
68 virtual void SetBackground(const SkBitmap& background) OVERRIDE; 69 virtual void SetBackground(const SkBitmap& background) OVERRIDE;
69 70
70 // Overridden from RenderWidgetHostViewPort: 71 // Overridden from RenderWidgetHostViewPort:
71 virtual void InitAsPopup(content::RenderWidgetHostView* parent_host_view, 72 virtual void InitAsPopup(content::RenderWidgetHostView* parent_host_view,
72 const gfx::Rect& pos) OVERRIDE; 73 const gfx::Rect& pos) OVERRIDE;
73 virtual void InitAsFullscreen( 74 virtual void InitAsFullscreen(
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 // These locks are the ones waiting for a texture of the right size to come 302 // These locks are the ones waiting for a texture of the right size to come
302 // back from the renderer/GPU process. 303 // back from the renderer/GPU process.
303 std::vector<linked_ptr<ResizeLock> > resize_locks_; 304 std::vector<linked_ptr<ResizeLock> > resize_locks_;
304 // These locks are the ones waiting for a frame to be drawn. 305 // These locks are the ones waiting for a frame to be drawn.
305 std::vector<linked_ptr<ResizeLock> > locks_pending_draw_; 306 std::vector<linked_ptr<ResizeLock> > locks_pending_draw_;
306 307
307 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 308 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
308 }; 309 };
309 310
310 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 311 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/thumbnail_generator.cc ('k') | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698