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

Side by Side Diff: ui/surface/accelerated_surface_win.h

Issue 22876030: Remove using the Shell desktop Window when we don't have an acceleated widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 3 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 UI_SURFACE_ACCELERATED_SURFACE_WIN_H_ 5 #ifndef UI_SURFACE_ACCELERATED_SURFACE_WIN_H_
6 #define UI_SURFACE_ACCELERATED_SURFACE_WIN_H_ 6 #define UI_SURFACE_ACCELERATED_SURFACE_WIN_H_
7 7
8 #include <d3d9.h> 8 #include <d3d9.h>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 void AsyncCopyToVideoFrame( 82 void AsyncCopyToVideoFrame(
83 const gfx::Rect& src_subrect, 83 const gfx::Rect& src_subrect,
84 const scoped_refptr<media::VideoFrame>& target, 84 const scoped_refptr<media::VideoFrame>& target,
85 const base::Callback<void(bool)>& callback); 85 const base::Callback<void(bool)>& callback);
86 void Invalidate(); 86 void Invalidate();
87 87
88 // Destroy any D3D resources owned by the given present thread. Called on 88 // Destroy any D3D resources owned by the given present thread. Called on
89 // the given present thread. 89 // the given present thread.
90 void ResetPresentThread(PresentThread* present_thread); 90 void ResetPresentThread(PresentThread* present_thread);
91 91
92 #if defined(USE_AURA)
93 // TODO(scottmg): This is a temporary hack until we have a two-worlds ash/aura
94 // separation.
95 void SetNewTargetWindow(gfx::PluginWindowHandle window);
96 #endif
97
98 private: 92 private:
99 friend class base::RefCountedThreadSafe<AcceleratedPresenter>; 93 friend class base::RefCountedThreadSafe<AcceleratedPresenter>;
100 94
101 ~AcceleratedPresenter(); 95 ~AcceleratedPresenter();
102 96
103 // These member functions are called on the PresentThread with which the 97 // These member functions are called on the PresentThread with which the
104 // presenter has affinity. 98 // presenter has affinity.
105 void DoPresentAndAcknowledge( 99 void DoPresentAndAcknowledge(
106 const gfx::Size& size, 100 const gfx::Size& size,
107 int64 surface_handle, 101 int64 surface_handle,
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 213
220 // Called when the Windows session in locked or unlocked. 214 // Called when the Windows session in locked or unlocked.
221 void SetIsSessionLocked(bool locked); 215 void SetIsSessionLocked(bool locked);
222 216
223 private: 217 private:
224 const scoped_refptr<AcceleratedPresenter> presenter_; 218 const scoped_refptr<AcceleratedPresenter> presenter_;
225 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurface); 219 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurface);
226 }; 220 };
227 221
228 #endif // UI_SURFACE_ACCELERATED_SURFACE_WIN_H_ 222 #endif // UI_SURFACE_ACCELERATED_SURFACE_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698