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

Side by Side Diff: mojo/services/gles2/gles2_impl.cc

Issue 114883003: Implement more of the JavaScript GL API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: asdf Created 7 years 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 | « mojo/mojo_apps.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "mojo/services/gles2/gles2_impl.h" 5 #include "mojo/services/gles2/gles2_impl.h"
6 6
7 #include <stdio.h>
7 #include "base/bind.h" 8 #include "base/bind.h"
8 #include "gpu/command_buffer/client/gl_in_process_context.h" 9 #include "gpu/command_buffer/client/gl_in_process_context.h"
9 #include "gpu/command_buffer/client/gles2_implementation.h" 10 #include "gpu/command_buffer/client/gles2_implementation.h"
10 11
11 namespace mojo { 12 namespace mojo {
12 namespace services { 13 namespace services {
13 14
14 GLES2Impl::GLES2Impl(ScopedMessagePipeHandle client) 15 GLES2Impl::GLES2Impl(ScopedMessagePipeHandle client)
15 : client_(client.Pass()) { 16 : client_(client.Pass()) {
16 client_.SetPeer(this); 17 client_.SetPeer(this);
(...skipping 19 matching lines...) Expand all
36 37
37 client_->DidCreateContext(encoded_gl, size.width(), size.height()); 38 client_->DidCreateContext(encoded_gl, size.width(), size.height());
38 } 39 }
39 40
40 void GLES2Impl::OnGLContextLost() { 41 void GLES2Impl::OnGLContextLost() {
41 client_->ContextLost(); 42 client_->ContextLost();
42 } 43 }
43 44
44 } // namespace services 45 } // namespace services
45 } // namespace mojo 46 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/mojo_apps.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698