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

Side by Side Diff: app/gfx/gl/gl_context.h

Issue 4815001: Use inner HWND for accelerated rendering on windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | app/gfx/gl/gl_context_egl.h » ('j') | chrome/browser/gpu_process_host.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 APP_GFX_GL_GL_CONTEXT_H_ 5 #ifndef APP_GFX_GL_GL_CONTEXT_H_
6 #define APP_GFX_GL_GL_CONTEXT_H_ 6 #define APP_GFX_GL_GL_CONTEXT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 21 matching lines...) Expand all
32 // Returns true if this context is offscreen. 32 // Returns true if this context is offscreen.
33 virtual bool IsOffscreen() = 0; 33 virtual bool IsOffscreen() = 0;
34 34
35 // Swaps front and back buffers. This has no effect for off-screen 35 // Swaps front and back buffers. This has no effect for off-screen
36 // contexts. 36 // contexts.
37 virtual bool SwapBuffers() = 0; 37 virtual bool SwapBuffers() = 0;
38 38
39 // Set the size of the back buffer. 39 // Set the size of the back buffer.
40 // FIXME(backer): Currently a NOP. Once we have an implementation for each 40 // FIXME(backer): Currently a NOP. Once we have an implementation for each
41 // backend we can switch it to pure virtual. 41 // backend we can switch it to pure virtual.
42 virtual void SetSize(gfx::Size) {} 42 virtual void SetSize(gfx::Size) { }
apatrick_chromium 2010/11/19 23:09:51 You only made a whitespace change to this file.
nduca 2010/11/20 00:28:49 Done.
43 43
44 // Get the size of the back buffer. 44 // Get the size of the back buffer.
45 virtual gfx::Size GetSize() = 0; 45 virtual gfx::Size GetSize() = 0;
46 46
47 // Get the underlying platform specific GL context "handle". 47 // Get the underlying platform specific GL context "handle".
48 virtual void* GetHandle() = 0; 48 virtual void* GetHandle() = 0;
49 49
50 // Set swap interval. This context must be current. 50 // Set swap interval. This context must be current.
51 virtual void SetSwapInterval(int interval) = 0; 51 virtual void SetSwapInterval(int interval) = 0;
52 52
(...skipping 21 matching lines...) Expand all
74 protected: 74 protected:
75 bool InitializeCommon(); 75 bool InitializeCommon();
76 76
77 private: 77 private:
78 DISALLOW_COPY_AND_ASSIGN(GLContext); 78 DISALLOW_COPY_AND_ASSIGN(GLContext);
79 }; 79 };
80 80
81 } // namespace gfx 81 } // namespace gfx
82 82
83 #endif // APP_GFX_GL_GL_CONTEXT_H_ 83 #endif // APP_GFX_GL_GL_CONTEXT_H_
OLDNEW
« no previous file with comments | « no previous file | app/gfx/gl/gl_context_egl.h » ('j') | chrome/browser/gpu_process_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698