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

Unified Diff: gpu/pgl/command_buffer_pepper.h

Issue 6883179: Rework FlushSync to return early if commands have been processed since the last update (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: style Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/ipc/gpu_command_buffer_traits.cc ('k') | gpu/pgl/command_buffer_pepper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/pgl/command_buffer_pepper.h
diff --git a/gpu/pgl/command_buffer_pepper.h b/gpu/pgl/command_buffer_pepper.h
deleted file mode 100644
index 446ec4a3375756116c2f34b6633e67d06f10265a..0000000000000000000000000000000000000000
--- a/gpu/pgl/command_buffer_pepper.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef GPU_PGL_COMMAND_BUFFER_PEPPER_H
-#define GPU_PGL_COMMAND_BUFFER_PEPPER_H
-
-#include "gpu/command_buffer/common/command_buffer.h"
-#include "third_party/npapi/bindings/npapi.h"
-#include "third_party/npapi/bindings/npruntime.h"
-#include "third_party/npapi/bindings/npapi_extensions.h"
-#ifdef __native_client__
-#include "native_client/src/third_party/npapi/files/include/npupp.h"
-#else
-#include "third_party/npapi/bindings/nphostapi.h"
-#endif // __native_client__
-
-namespace {
-class SharedMemory;
-}
-
-// A CommandBuffer proxy implementation that uses the Pepper API to access
-// the command buffer.
-
-class CommandBufferPepper : public gpu::CommandBuffer {
- public:
- CommandBufferPepper(NPP npp,
- NPDevice* device,
- NPDeviceContext3D* device_context);
- virtual ~CommandBufferPepper();
-
- // CommandBuffer implementation.
- virtual bool Initialize(int32 size);
- virtual bool Initialize(base::SharedMemory* buffer, int32 size);
- virtual gpu::Buffer GetRingBuffer();
- virtual State GetState();
- virtual void Flush(int32 put_offset);
- virtual State FlushSync(int32 put_offset);
- virtual void SetGetOffset(int32 get_offset);
- virtual int32 CreateTransferBuffer(size_t size, int32 id_request);
- virtual void DestroyTransferBuffer(int32 id);
- virtual gpu::Buffer GetTransferBuffer(int32 handle);
- virtual int32 RegisterTransferBuffer(base::SharedMemory* shared_memory,
- size_t size,
- int32 id_request);
- virtual void SetToken(int32 token);
- virtual void SetParseError(gpu::error::Error error);
-
- gpu::error::Error GetCachedError();
-
- private:
- CommandBuffer::State ConvertState();
-
- NPP npp_;
- NPDevice* device_;
- NPDeviceContext3D* context_;
-};
-
-#endif // GPU_PGL_COMMAND_BUFFER_PEPPER_H
« no previous file with comments | « gpu/ipc/gpu_command_buffer_traits.cc ('k') | gpu/pgl/command_buffer_pepper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698