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

Side by Side Diff: mojo/examples/compositor_app/gles2_client_impl.h

Issue 128813002: Remove dependencies on base from SampleApp (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unnecessary change 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | mojo/examples/compositor_app/gles2_client_impl.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 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 MOJO_EXAMPLES_COMPOSITOR_APP_GLES2_CLIENT_IMPL_H_ 5 #ifndef MOJO_EXAMPLES_COMPOSITOR_APP_GLES2_CLIENT_IMPL_H_
6 #define MOJO_EXAMPLES_COMPOSITOR_APP_GLES2_CLIENT_IMPL_H_ 6 #define MOJO_EXAMPLES_COMPOSITOR_APP_GLES2_CLIENT_IMPL_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "base/timer/timer.h" 9 #include "base/timer/timer.h"
10 #include "mojo/public/bindings/lib/remote_ptr.h" 10 #include "mojo/public/bindings/lib/remote_ptr.h"
(...skipping 20 matching lines...) Expand all
31 virtual ~GLES2ClientImpl(); 31 virtual ~GLES2ClientImpl();
32 32
33 gpu::gles2::GLES2Interface* Interface() const; 33 gpu::gles2::GLES2Interface* Interface() const;
34 gpu::ContextSupport* Support() const; 34 gpu::ContextSupport* Support() const;
35 35
36 private: 36 private:
37 virtual void DidCreateContext(uint64_t encoded, 37 virtual void DidCreateContext(uint64_t encoded,
38 uint32_t width, 38 uint32_t width,
39 uint32_t height) MOJO_OVERRIDE; 39 uint32_t height) MOJO_OVERRIDE;
40 virtual void ContextLost() MOJO_OVERRIDE; 40 virtual void ContextLost() MOJO_OVERRIDE;
41 virtual void DrawAnimationFrame() MOJO_OVERRIDE;
41 42
42 base::Callback<void(gfx::Size viewport_size)> context_created_callback_; 43 base::Callback<void(gfx::Size viewport_size)> context_created_callback_;
43 gpu::gles2::GLES2Implementation* impl_; 44 gpu::gles2::GLES2Implementation* impl_;
44 45
45 RemotePtr<GLES2> service_; 46 RemotePtr<GLES2> service_;
46 47
47 MOJO_DISALLOW_COPY_AND_ASSIGN(GLES2ClientImpl); 48 MOJO_DISALLOW_COPY_AND_ASSIGN(GLES2ClientImpl);
48 }; 49 };
49 50
50 } // namespace examples 51 } // namespace examples
51 } // namespace mojo 52 } // namespace mojo
52 53
53 #endif // MOJO_EXAMPLES_COMPOSITOR_APP_GLES2_CLIENT_IMPL_H_ 54 #endif // MOJO_EXAMPLES_COMPOSITOR_APP_GLES2_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | mojo/examples/compositor_app/gles2_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698