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

Side by Side Diff: gpu/command_buffer/client/context_support.h

Issue 93663004: [#2] Pass gfx structs by const ref (gfx::Rect, gfx::RectF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT, fix builds on non-linux platforms! Created 6 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_
6 #define GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ 6 #define GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "ui/gfx/rect.h" 9 #include "ui/gfx/rect.h"
10 10
(...skipping 10 matching lines...) Expand all
21 // passed the glEndQueryEXT() point. 21 // passed the glEndQueryEXT() point.
22 virtual void SignalQuery(uint32 query, const base::Closure& callback) = 0; 22 virtual void SignalQuery(uint32 query, const base::Closure& callback) = 0;
23 23
24 // For onscreen contexts, indicates that the surface visibility has changed. 24 // For onscreen contexts, indicates that the surface visibility has changed.
25 // Clients aren't expected to draw to an invisible surface. 25 // Clients aren't expected to draw to an invisible surface.
26 virtual void SetSurfaceVisible(bool visible) = 0; 26 virtual void SetSurfaceVisible(bool visible) = 0;
27 27
28 virtual void SendManagedMemoryStats(const ManagedMemoryStats& stats) = 0; 28 virtual void SendManagedMemoryStats(const ManagedMemoryStats& stats) = 0;
29 29
30 virtual void Swap() = 0; 30 virtual void Swap() = 0;
31 virtual void PartialSwapBuffers(gfx::Rect sub_buffer) = 0; 31 virtual void PartialSwapBuffers(const gfx::Rect& sub_buffer) = 0;
32 32
33 virtual void SetSwapBuffersCompleteCallback( 33 virtual void SetSwapBuffersCompleteCallback(
34 const base::Closure& callback) = 0; 34 const base::Closure& callback) = 0;
35 35
36 protected: 36 protected:
37 ContextSupport() {} 37 ContextSupport() {}
38 virtual ~ContextSupport() {} 38 virtual ~ContextSupport() {}
39 }; 39 };
40 40
41 } 41 }
42 42
43 #endif // GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ 43 #endif // GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/compositor_software_output_device.cc ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698