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

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

Issue 9303009: Add IPC allowing GPU process to tell browser process to temporarily drop a front buffer. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 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_GFX_SURFACE_ACCELERATED_SURFACE_WIN_H_ 5 #ifndef UI_GFX_SURFACE_ACCELERATED_SURFACE_WIN_H_
6 #define UI_GFX_SURFACE_ACCELERATED_SURFACE_WIN_H_ 6 #define UI_GFX_SURFACE_ACCELERATED_SURFACE_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/memory/linked_ptr.h" 10 #include "base/memory/linked_ptr.h"
(...skipping 12 matching lines...) Expand all
23 // when it is safe to write to the surface on another thread. The lock for 23 // when it is safe to write to the surface on another thread. The lock for
24 // this surface will be held while the completion callback runs. 24 // this surface will be held while the completion callback runs.
25 void AsyncPresentAndAcknowledge(HWND window, 25 void AsyncPresentAndAcknowledge(HWND window,
26 const gfx::Size& size, 26 const gfx::Size& size,
27 int64 surface_id, 27 int64 surface_id,
28 const base::Closure& completion_task); 28 const base::Closure& completion_task);
29 29
30 // Synchronously present a frame with no acknowledgement. 30 // Synchronously present a frame with no acknowledgement.
31 bool Present(HWND window); 31 bool Present(HWND window);
32 32
33 // Temporarily release resources until a new surface is asynchronously
34 // presented. Present will not be able to represent the last surface after
35 // calling this and will return false.
36 void Suspend();
37
33 private: 38 private:
34 linked_ptr<AcceleratedPresenter> presenter_; 39 linked_ptr<AcceleratedPresenter> presenter_;
35 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurface); 40 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurface);
36 }; 41 };
37 42
38 #endif // UI_GFX_SURFACE_ACCELERATED_SURFACE_WIN_H_ 43 #endif // UI_GFX_SURFACE_ACCELERATED_SURFACE_WIN_H_
OLDNEW
« no previous file with comments | « content/common/gpu/image_transport_surface.cc ('k') | ui/gfx/surface/accelerated_surface_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698