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

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

Issue 9915001: Windows: added command line switch to reverse rows of image transport surface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 8 years, 6 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
« no previous file with comments | « no previous file | ui/surface/accelerated_surface_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #pragma once 7 #pragma once
8 8
9 #include <d3d9.h> 9 #include <d3d9.h>
10 10
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // window has been resized. 96 // window has been resized.
97 gfx::Size present_size_; 97 gfx::Size present_size_;
98 98
99 // This is a shared texture that is being presented from. 99 // This is a shared texture that is being presented from.
100 base::win::ScopedComPtr<IDirect3DTexture9> source_texture_; 100 base::win::ScopedComPtr<IDirect3DTexture9> source_texture_;
101 101
102 // The swap chain is presented to the child window. Copy semantics 102 // The swap chain is presented to the child window. Copy semantics
103 // are used so it is possible to represent it to quickly validate the window. 103 // are used so it is possible to represent it to quickly validate the window.
104 base::win::ScopedComPtr<IDirect3DSwapChain9> swap_chain_; 104 base::win::ScopedComPtr<IDirect3DSwapChain9> swap_chain_;
105 105
106 // Whether surfaces are flipped vertically prior to presentation.
107 bool reverse_rows_;
108
106 bool hidden_; 109 bool hidden_;
107 110
108 DISALLOW_COPY_AND_ASSIGN(AcceleratedPresenter); 111 DISALLOW_COPY_AND_ASSIGN(AcceleratedPresenter);
109 }; 112 };
110 113
111 class SURFACE_EXPORT AcceleratedSurface { 114 class SURFACE_EXPORT AcceleratedSurface {
112 public: 115 public:
113 AcceleratedSurface(gfx::NativeWindow window); 116 AcceleratedSurface(gfx::NativeWindow window);
114 ~AcceleratedSurface(); 117 ~AcceleratedSurface();
115 118
(...skipping 13 matching lines...) Expand all
129 132
130 // Indicates that the surface has become invisible. 133 // Indicates that the surface has become invisible.
131 void WasHidden(); 134 void WasHidden();
132 135
133 private: 136 private:
134 const scoped_refptr<AcceleratedPresenter> presenter_; 137 const scoped_refptr<AcceleratedPresenter> presenter_;
135 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurface); 138 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurface);
136 }; 139 };
137 140
138 #endif // UI_SURFACE_ACCELERATED_SURFACE_WIN_H_ 141 #endif // UI_SURFACE_ACCELERATED_SURFACE_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | ui/surface/accelerated_surface_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698