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

Side by Side Diff: mojo/examples/pepper_container_app/graphics_3d_resource.cc

Issue 218193002: Mojo: Move C gles2 header files to mojo/public/c/gles2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/examples/pepper_container_app/graphics_3d_resource.h" 5 #include "mojo/examples/pepper_container_app/graphics_3d_resource.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "mojo/examples/pepper_container_app/mojo_ppapi_globals.h" 8 #include "mojo/examples/pepper_container_app/mojo_ppapi_globals.h"
9 #include "mojo/examples/pepper_container_app/plugin_instance.h" 9 #include "mojo/examples/pepper_container_app/plugin_instance.h"
10 #include "mojo/public/gles2/gles2.h" 10 #include "mojo/public/c/gles2/gles2.h"
11 #include "ppapi/c/pp_errors.h" 11 #include "ppapi/c/pp_errors.h"
12 12
13 namespace mojo { 13 namespace mojo {
14 namespace examples { 14 namespace examples {
15 15
16 namespace { 16 namespace {
17 17
18 gpu::CommandBuffer::State GetErrorState() { 18 gpu::CommandBuffer::State GetErrorState() {
19 gpu::CommandBuffer::State error_state; 19 gpu::CommandBuffer::State error_state;
20 error_state.error = gpu::error::kGenericError; 20 error_state.error = gpu::error::kGenericError;
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 void Graphics3DResource::ContextLost() { 162 void Graphics3DResource::ContextLost() {
163 PluginInstance* plugin_instance = 163 PluginInstance* plugin_instance =
164 MojoPpapiGlobals::Get()->GetInstance(pp_instance()); 164 MojoPpapiGlobals::Get()->GetInstance(pp_instance());
165 if (plugin_instance) 165 if (plugin_instance)
166 plugin_instance->Graphics3DContextLost(); 166 plugin_instance->Graphics3DContextLost();
167 } 167 }
168 168
169 } // namespace examples 169 } // namespace examples
170 } // namespace mojo 170 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/examples/pepper_container_app/graphics_3d_resource.h ('k') | mojo/examples/pepper_container_app/ppb_opengles2_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698